Skip to content

Conversation

@jstirnaman
Copy link
Contributor

Summary

Adds a .devcontainer configuration for GitHub Codespaces development environment.

  • Configures Node.js dev container with Hugo and Vale
  • Includes setup script for Claude Code CLI
  • Uses latest Hugo version with extended features

Test plan

  • Test Codespaces launch with "Open in Codespaces"
  • Verify Hugo server starts correctly
  • Verify Vale linting works

Adds GitHub Codespaces / devcontainer configuration:
- Node.js 20 base image with Hugo extended
- Auto-installs: yarn dependencies, Vale CLI, Claude Code CLI
- VS Code extensions: Markdown, Prettier, YAML, Vale
- Port forwarding for Hugo dev server (1313)
- Secrets prompt for ANTHROPIC_API_KEY

Usage:
1. Open repo in Codespaces
2. Add ANTHROPIC_API_KEY to Codespaces secrets
3. Run `claude` to start Claude Code with full network access

https://claude.ai/code/session_0173AuWPoy6UXiatCMGz4W7h
- Remove 'secrets' field (not valid in devcontainer schema, configure in GitHub settings)
- Remove specific Hugo version (use feature default)
- Add codespaces.openFiles for better UX

https://claude.ai/code/session_0173AuWPoy6UXiatCMGz4W7h
- Remove docker-in-docker feature (may cause filesystem provider errors)
- Remove codespaces-specific settings
- Simplify extensions list
- Make setup.sh more resilient (don't fail on warnings)

https://claude.ai/code/session_0173AuWPoy6UXiatCMGz4W7h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants