generated from cotes2020/chirpy-starter
-
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.
Merge pull request #120 from harshityadav95/BuildBreaker
Build breaker
- Loading branch information
Showing
18 changed files
with
402 additions
and
73 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,29 @@ | ||
{ | ||
"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" | ||
}, | ||
"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,18 @@ | ||
#!/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 | ||
|
||
# Add OMZ plugins | ||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | ||
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc | ||
|
||
# Avoid git log use less | ||
echo -e "\nunset LESS" >>~/.zshrc |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// Prettier | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
// Shopify Liquid | ||
"files.associations": { | ||
"*.html": "liquid" | ||
}, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "yzhang.markdown-all-in-one" | ||
}, | ||
// Formatter | ||
"[html][liquid]": { | ||
"editor.defaultFormatter": "Shopify.theme-check-vscode" | ||
}, | ||
"[shellscript]": { | ||
"editor.defaultFormatter": "mkhl.shfmt" | ||
}, | ||
// Disable vscode built-in stylelint | ||
"css.validate": false, | ||
"scss.validate": false, | ||
"less.validate": false, | ||
// Stylint extension settings | ||
"stylelint.snippet": ["css", "scss"], | ||
"stylelint.validate": ["css", "scss"], | ||
// Run tasks in macOS | ||
"terminal.integrated.profiles.osx": { | ||
"zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] } | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Run Jekyll Server", | ||
"type": "shell", | ||
"command": "./tools/run.sh", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Runs the Jekyll server with live reload." | ||
}, | ||
{ | ||
"label": "Build Jekyll Site", | ||
"type": "shell", | ||
"command": "./tools/test.sh", | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Build the Jekyll site for production." | ||
} | ||
] | ||
} |
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
Oops, something went wrong.