Skip to content

Commit 2937dde

Browse files
authored
Merge pull request #13 from kc3hack/graphql-practice
Apollo Server / Client on Next.js App Router
2 parents 7028399 + 3c9a818 commit 2937dde

23 files changed

+11679
-515
lines changed

Diff for: Taskfile.yaml

+19-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ version: "3"
33
tasks:
44
up:
55
desc: 開発サーバーを起動します
6+
deps:
7+
- codegen:graphql:watch
8+
- up:frontend:npm
9+
10+
up:frontend:npm:
11+
dir: packages/akane-next
612
cmds:
7-
- docker compose up -w
13+
- npm run dev
814

915
down:
1016
desc: 開発サーバーを停止します
@@ -16,6 +22,18 @@ tasks:
1622
cmds:
1723
- docker compose build
1824

25+
codegen:graphql:
26+
desc: GraphQLのコードジェネレータを実行します
27+
cmds:
28+
- sh ./scripts/copy-gql-schema.sh
29+
- npm -w packages/akane-next run codegen:graphql
30+
31+
codegen:graphql:watch:
32+
desc: GraphQLのコードジェネレータを監視モードで実行します
33+
cmds:
34+
- sh ./scripts/copy-gql-schema.sh
35+
- npm -w packages/akane-next run codegen:graphql:watch
36+
1937
# akane-next に対して npm コマンドを実行するタスク
2038
# workspace 指定が面倒なのでその shorthand として定義
2139
# e.g. task nan -- install -D vitest

0 commit comments

Comments
 (0)