Skip to content

Commit

Permalink
Merge pull request #102 from Yoshino-Yukitaro/develop
Browse files Browse the repository at this point in the history
astroを最新バージョン(4.15.6)にアップデート
  • Loading branch information
Yoshino-Yukitaro authored Sep 15, 2024
2 parents f77107e + 1fea54d commit b39080e
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 9 deletions.
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

0 comments on commit b39080e

Please sign in to comment.