Skip to content

Commit a2bf5dc

Browse files
committed
Merge branch 'master' into production
2 parents 20987f2 + 8b7dba7 commit a2bf5dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+533
-322
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Jekyll",
3+
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye",
4+
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
5+
"postCreateCommand": "bash .devcontainer/post-create.sh",
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"terminal.integrated.defaultProfile.linux": "zsh"
10+
},
11+
"extensions": [
12+
// Liquid tags auto-complete
13+
"killalau.vscode-liquid-snippets",
14+
// Liquid syntax highlighting and formatting
15+
"Shopify.theme-check-vscode",
16+
// Shell
17+
"timonwong.shellcheck",
18+
"mkhl.shfmt",
19+
// Common formatter
20+
"EditorConfig.EditorConfig",
21+
"esbenp.prettier-vscode",
22+
"stylelint.vscode-stylelint",
23+
"yzhang.markdown-all-in-one",
24+
// Git
25+
"mhutchie.git-graph"
26+
]
27+
}
28+
}
29+
}

.devcontainer/post-create.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -f package.json ]; then
4+
bash -i -c "nvm install --lts && nvm install-latest-npm"
5+
npm i
6+
npm run build
7+
fi
8+
9+
# Install dependencies for shfmt extension
10+
curl -sS https://webi.sh/shfmt | sh &>/dev/null
11+
12+
# Add OMZ plugins
13+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
14+
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
15+
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc
16+
17+
# Avoid git log use less
18+
echo -e "\nunset LESS" >>~/.zshrc

.github/dependabot.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ updates:
88
directory: "/"
99
versioning-strategy: increase
1010
groups:
11-
npm:
12-
update-types:
13-
- "major"
14-
- "minor"
15-
- "patch"
11+
prod-deps:
12+
dependency-type: production
13+
dev-deps:
14+
dependency-type: development
1615
schedule:
1716
interval: "weekly"
1817
- package-ecosystem: "github-actions"
@@ -23,3 +22,7 @@ updates:
2322
- "major"
2423
schedule:
2524
interval: "weekly"
25+
- package-ecosystem: "devcontainers"
26+
directory: "/"
27+
schedule:
28+
interval: weekly

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: actions/setup-node@v4
2626
with:
27-
node-version: latest
27+
node-version: lts/*
2828

2929
- run: npm install
3030
- run: npx semantic-release

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
- name: Setup Node
3737
uses: actions/setup-node@v4
3838
with:
39-
node-version: latest
39+
node-version: lts/*
4040

4141
- name: Build Assets
4242
run: npm i && npm run build
4343

4444
- name: Test Site
45-
run: bash tools/test
45+
run: bash tools/test.sh

.github/workflows/style-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: latest
21+
node-version: lts/*
2222
- run: npm i
2323
- run: npm test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ package-lock.json
1717

1818
# IDE configurations
1919
.idea
20-
.vscode
20+
.vscode/*
2121
!.vscode/settings.json
2222
!.vscode/extensions.json
23+
!.vscode/tasks.json
2324

2425
# Misc
2526
_sass/dist

.husky/commit-msg

100755100644
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx --no -- commitlint --edit ${1}
1+
npx --no -- commitlint --edit $1

.vscode/extensions.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
{
2-
"recommendations": [
3-
// Liquid tags auto-complete
4-
"killalau.vscode-liquid-snippets",
5-
// Liquid syntax highlighting and formatting
6-
"Shopify.theme-check-vscode",
7-
// Common formatter
8-
"esbenp.prettier-vscode",
9-
"foxundermoon.shell-format",
10-
"stylelint.vscode-stylelint",
11-
"yzhang.markdown-all-in-one"
12-
]
2+
"recommendations": ["ms-vscode-remote.remote-containers"]
133
}

.vscode/settings.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Prettier
33
"editor.defaultFormatter": "esbenp.prettier-vscode",
44
"editor.formatOnSave": true,
5-
"prettier.trailingComma": "none",
65
// Shopify Liquid
76
"files.associations": {
87
"*.html": "liquid"
@@ -15,13 +14,17 @@
1514
"editor.defaultFormatter": "Shopify.theme-check-vscode"
1615
},
1716
"[shellscript]": {
18-
"editor.defaultFormatter": "foxundermoon.shell-format"
17+
"editor.defaultFormatter": "mkhl.shfmt"
1918
},
2019
// Disable vscode built-in stylelint
2120
"css.validate": false,
2221
"scss.validate": false,
2322
"less.validate": false,
2423
// Stylint extension settings
25-
"stylelint.snippet": ["css", "less", "postcss", "scss"],
26-
"stylelint.validate": ["css", "less", "postcss", "scss"]
24+
"stylelint.snippet": ["css", "scss"],
25+
"stylelint.validate": ["css", "scss"],
26+
// Run tasks in macOS
27+
"terminal.integrated.profiles.osx": {
28+
"zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] }
29+
}
2730
}

0 commit comments

Comments
 (0)