forked from cotes2020/jekyll-theme-chirpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): support vscode dev-container (cotes2020#1781)
- Loading branch information
Showing
8 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "Jekyll", | ||
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye", | ||
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}", | ||
"postCreateCommand": "bash .devcontainer/post-create.sh", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
// Speed up extension installation | ||
"extensions.verifySignature": false | ||
}, | ||
"extensions": [ | ||
// Liquid tags auto-complete | ||
"killalau.vscode-liquid-snippets", | ||
// Liquid syntax highlighting and formatting | ||
"Shopify.theme-check-vscode", | ||
// Shell | ||
"timonwong.shellcheck", | ||
"mkhl.shfmt", | ||
// Common formatter | ||
"EditorConfig.EditorConfig", | ||
"esbenp.prettier-vscode", | ||
"stylelint.vscode-stylelint", | ||
"yzhang.markdown-all-in-one", | ||
// Git | ||
"mhutchie.git-graph" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f package.json ]; then | ||
bash -i -c "nvm install --lts && nvm install-latest-npm" | ||
npm i | ||
npm run build | ||
fi | ||
|
||
# Install dependencies for shfmt extension | ||
curl -sS https://webi.sh/shfmt | sh &>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
// Liquid tags auto-complete | ||
"killalau.vscode-liquid-snippets", | ||
// Liquid syntax highlighting and formatting | ||
"Shopify.theme-check-vscode", | ||
// Common formatter | ||
"esbenp.prettier-vscode", | ||
"foxundermoon.shell-format", | ||
"stylelint.vscode-stylelint", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
"recommendations": ["ms-vscode-remote.remote-containers"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters