Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

astroを最新バージョン(4.15.6)にアップデート #102

Merged
merged 4 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .astro/integrations/_inox-tools_astro-when/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@inox-tools/astro-when';
5 changes: 5 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1726360437260
}
}
2 changes: 2 additions & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="astro/client" />
/// <reference path="integrations/_inox-tools_astro-when/types.d.ts" />
10 changes: 10 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: Playwright Tests
on:
pull_request:
branches: [main, develop]
paths:
- "**.astro"
- "**.ts"
- "**.tsx"
- "**.mdx"
- "**.json"
- "**.yml"
- "**.yaml"
paths-ignore:
- ".vscode"
jobs:
test:
timeout-minutes: 60
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

### パッケージ管理

- pnpm 8.6.0
- bun v1.1.27

### メイン

- Astro v2.9.7
- Astro v4.15.6
- tailwindcss v3.3.3

### テスト
Expand All @@ -34,7 +34,7 @@

- microCMS のアカウント
- microCMS の API Key
- pnpm 8.6
- bun 1.1

### 手順

Expand All @@ -48,7 +48,7 @@ git clone [email protected]:Yoshino-Yukitaro/yukky-sandbox.git

```shell
cd yukky-sandbox
pnpm i
bun i
```

#### .env ファイルを追加、更新する
Expand All @@ -62,7 +62,7 @@ echo "MICROCMS_API_KEY=${microcmsのAPI Key}" >> ./.env
#### 起動してみる

```shell
pnpm run dev
bun run dev
```

`http://localhost:4321`にアクセス
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/cloudflare": "^9.1.0",
"@astrojs/cloudflare": "11.0.4",
"@astrojs/tailwind": "^5.1.0",
"astro": "4.5",
"astro": "4.15.6",
"microcms-js-sdk": "^3.0.0",
"tailwindcss": "^3.3.3",
"typescript-eslint": "^7.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
4 changes: 2 additions & 2 deletions src/library/postFetcher.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createClient } from "microcms-js-sdk";
import type { MicroCMSQueries } from "microcms-js-sdk";
const client = createClient({
serviceDomain: process.env.MICROCMS_SERVICE_DOMAIN as string,
apiKey: process.env.MICROCMS_API_KEY as string,
serviceDomain: import.meta.env.MICROCMS_SERVICE_DOMAIN as string,
apiKey: import.meta.env.MICROCMS_API_KEY as string,
});

interface Category {
Expand Down