-
-
Notifications
You must be signed in to change notification settings - Fork 26
feat: add initial github codespaces config #1059
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "name": "Ubuntu", | ||
| "image": "mcr.microsoft.com/devcontainers/base:resolute", | ||
| "features": { | ||
| "ghcr.io/stu-bell/devcontainer-features/homebrew:1": { | ||
| "brewPackage": "hugo" | ||
| }, | ||
| "ghcr.io/devcontainers/features/git-lfs:1": {}, | ||
| "ghcr.io/stu-bell/devcontainer-features/node:0": { | ||
| "min_node_version": "22.12" | ||
| }, | ||
|
Comment on lines
+9
to
+11
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for node, there seems to be an official feature too: https://github.com/devcontainers/features/tree/main/src/node
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feel free to try it out. Several ways lead to Rome :D |
||
| "ghcr.io/devcontainers/features/python:1": {} | ||
| }, | ||
| "postCreateCommand": "npm install && brew install prek && prek install -f" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Official feature for prek: https://github.com/devcontainers-extra/features/tree/main/src/prek
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "problem" is. As far as I know this are all standalone dev containers. I'm not sure on how to combine them 😅
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So feel free to try it out. I'm not motivated to invest more time in this feature 🙈 |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be an official devcontainer feature for hugo, but I haven't tested it: https://github.com/devcontainers/features/tree/main/src/hugo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is, it's using an outdated Hugo version. So try for yourself, but I've encountered problems with the language implementation. Brew makes sure we have an up-to-date version of Hugo.