Skip to content

Apollo Server / Client on Next.js App Router #13

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

Merged
merged 8 commits into from
Feb 16, 2025
Merged
Show file tree
Hide file tree
Changes from 7 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
20 changes: 19 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ version: "3"
tasks:
up:
desc: 開発サーバーを起動します
deps:
- codegen:graphql:watch
- up:frontend:npm

up:frontend:npm:
dir: packages/akane-next
cmds:
- docker compose up -w
- npm run dev

down:
desc: 開発サーバーを停止します
Expand All @@ -16,6 +22,18 @@ tasks:
cmds:
- docker compose build

codegen:graphql:
desc: GraphQLのコードジェネレータを実行します
cmds:
- sh ./scripts/copy-gql-schema.sh
- npm -w packages/akane-next run codegen:graphql

codegen:graphql:watch:
desc: GraphQLのコードジェネレータを監視モードで実行します
cmds:
- sh ./scripts/copy-gql-schema.sh
- npm -w packages/akane-next run codegen:graphql:watch

# akane-next に対して npm コマンドを実行するタスク
# workspace 指定が面倒なのでその shorthand として定義
# e.g. task nan -- install -D vitest
Expand Down
Loading