Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create devcontainer for GitHub Codespaces #407

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

HonkingGoose
Copy link
Contributor

@HonkingGoose HonkingGoose commented Oct 28, 2024

Changes:

  • Create .devcontainer file with GitHub Codespaces setup
  • Use Node 22 as basis for the container image

Context:

With my changes you can:

  • Create a development enviroment by clicking on the green <> Code button on any branch of your repository (this also works on forks that have pulled in this change)
  • You can use the browser to work on your change, and see the preview of the live site
  • You do not need to worry about installing the right dependencies

You will need to update the "image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm", part from time to time. GitHub added a Dependabot config during the setup steps for the Node.js container.

I recommend using a bot to update the container file regularly. It's easy to forget. 😄

Docs

@deniszholob deniszholob merged commit fa71d61 into deniszholob:master Oct 28, 2024
1 of 2 checks passed
@HonkingGoose HonkingGoose deleted the chore/setup-codespace branch October 28, 2024 22:35
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