Skip to content

Commit 41f9b5d

Browse files
Merge pull request #202 from h-yoshikawa44/feature/201_update-astro-v5
Astroをはじめとしたパッケージの全般アプデ(Astro: 5.1.2)
2 parents 14aa40b + bb6eecf commit 41f9b5d

25 files changed

+6770
-6315
lines changed

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.16.0
1+
22.12.0

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
2023/07に Jekyll より移行したもの。
66

77
## 技術構成
8-
- TypeScript:5.5.4
9-
- Node.js:20.16.0
10-
- Astro:4.15.4
11-
- UnoCSS:0.62.3
8+
- TypeScript:5.7.2
9+
- Node.js:22.12.0
10+
- Astro:5.1.2
11+
- UnoCSS:0.65.3
1212

1313
## 環境変数
1414
テンプレファイルをコピーして、値を入れる

astro.config.mjs

+18-20
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,24 @@ export default defineConfig({
5050
],
5151
],
5252
},
53-
experimental: {
54-
env: {
55-
schema: {
56-
GOOGLE_ANALYTICS_TAG: envField.string({
57-
context: 'server',
58-
access: 'public',
59-
}),
60-
GOOGLE_SITE_VERIFICATION: envField.string({
61-
context: 'server',
62-
access: 'public',
63-
}),
64-
PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID: envField.string({
65-
context: 'client',
66-
access: 'public',
67-
}),
68-
PUBLIC_GOOGLE_ADSENSE_SLOT: envField.string({
69-
context: 'client',
70-
access: 'public',
71-
}),
72-
},
53+
env: {
54+
schema: {
55+
GOOGLE_ANALYTICS_TAG: envField.string({
56+
context: 'server',
57+
access: 'public',
58+
}),
59+
GOOGLE_SITE_VERIFICATION: envField.string({
60+
context: 'server',
61+
access: 'public',
62+
}),
63+
PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID: envField.string({
64+
context: 'client',
65+
access: 'public',
66+
}),
67+
PUBLIC_GOOGLE_ADSENSE_SLOT: envField.string({
68+
context: 'client',
69+
access: 'public',
70+
}),
7371
},
7472
},
7573
});

lefthook.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ pre-commit:
44
astro-fixer:
55
glob: "src/**/*.astro"
66
run: |
7-
npx eslint --fix --quiet {staged_files}
8-
npx prettier --write --log-level=error {staged_files}
7+
npx eslint --fix --quiet "{staged_files}"
8+
npx prettier --write --log-level=error "{staged_files}"
99
# デフォルトではコマンド実行後の差分を stage に上げてくれないので上げるようにする
1010
stage_fixed: true
1111
skip:
1212
- merge
1313
js-ts-fixer:
1414
glob: "src/**/*.{js,jsx,ts,tsx}"
1515
run: |
16-
npx eslint --fix --quiet {staged_files}
17-
npx prettier --write --log-level=error {staged_files}
16+
npx eslint --fix --quiet "{staged_files}"
17+
npx prettier --write --log-level=error "{staged_files}"
1818
stage_fixed: true
1919
skip:
2020
- merge
2121
scss-fixer:
2222
glob: "src/**/*.scss"
2323
run: |
24-
npx stylelint --fix --quiet {staged_files}
25-
npx prettier --write --log-level=error {staged_files}
24+
npx stylelint --fix --quiet "{staged_files}"
25+
npx prettier --write --log-level=error "{staged_files}"
2626
stage_fixed: true
2727
skip:
2828
- merge
2929
formatter:
3030
glob: "./**/*.{html,json,yml}"
31-
run: npx prettier --write --log-level=error {staged_files}
31+
run: npx prettier --write --log-level=error "{staged_files}"
3232
stage_fixed: true
3333
skip:
3434
- merge

0 commit comments

Comments
 (0)