Skip to content

Commit

Permalink
Merge pull request #202 from h-yoshikawa44/feature/201_update-astro-v5
Browse files Browse the repository at this point in the history
Astroをはじめとしたパッケージの全般アプデ(Astro: 5.1.2)
  • Loading branch information
h-yoshikawa44 authored Jan 5, 2025
2 parents 14aa40b + bb6eecf commit 41f9b5d
Show file tree
Hide file tree
Showing 25 changed files with 6,770 additions and 6,315 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.16.0
22.12.0
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
2023/07に Jekyll より移行したもの。

## 技術構成
- TypeScript:5.5.4
- Node.js:20.16.0
- Astro:4.15.4
- UnoCSS:0.62.3
- TypeScript:5.7.2
- Node.js:22.12.0
- Astro:5.1.2
- UnoCSS:0.65.3

## 環境変数
テンプレファイルをコピーして、値を入れる
Expand Down
38 changes: 18 additions & 20 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,24 @@ export default defineConfig({
],
],
},
experimental: {
env: {
schema: {
GOOGLE_ANALYTICS_TAG: envField.string({
context: 'server',
access: 'public',
}),
GOOGLE_SITE_VERIFICATION: envField.string({
context: 'server',
access: 'public',
}),
PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID: envField.string({
context: 'client',
access: 'public',
}),
PUBLIC_GOOGLE_ADSENSE_SLOT: envField.string({
context: 'client',
access: 'public',
}),
},
env: {
schema: {
GOOGLE_ANALYTICS_TAG: envField.string({
context: 'server',
access: 'public',
}),
GOOGLE_SITE_VERIFICATION: envField.string({
context: 'server',
access: 'public',
}),
PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID: envField.string({
context: 'client',
access: 'public',
}),
PUBLIC_GOOGLE_ADSENSE_SLOT: envField.string({
context: 'client',
access: 'public',
}),
},
},
});
14 changes: 7 additions & 7 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ pre-commit:
astro-fixer:
glob: "src/**/*.astro"
run: |
npx eslint --fix --quiet {staged_files}
npx prettier --write --log-level=error {staged_files}
npx eslint --fix --quiet "{staged_files}"
npx prettier --write --log-level=error "{staged_files}"
# デフォルトではコマンド実行後の差分を stage に上げてくれないので上げるようにする
stage_fixed: true
skip:
- merge
js-ts-fixer:
glob: "src/**/*.{js,jsx,ts,tsx}"
run: |
npx eslint --fix --quiet {staged_files}
npx prettier --write --log-level=error {staged_files}
npx eslint --fix --quiet "{staged_files}"
npx prettier --write --log-level=error "{staged_files}"
stage_fixed: true
skip:
- merge
scss-fixer:
glob: "src/**/*.scss"
run: |
npx stylelint --fix --quiet {staged_files}
npx prettier --write --log-level=error {staged_files}
npx stylelint --fix --quiet "{staged_files}"
npx prettier --write --log-level=error "{staged_files}"
stage_fixed: true
skip:
- merge
formatter:
glob: "./**/*.{html,json,yml}"
run: npx prettier --write --log-level=error {staged_files}
run: npx prettier --write --log-level=error "{staged_files}"
stage_fixed: true
skip:
- merge
Expand Down
Loading

0 comments on commit 41f9b5d

Please sign in to comment.