Skip to content
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
*.graphql
*.graphql.ts
__generated__/

.pgdata/

Expand Down
25 changes: 18 additions & 7 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,26 @@ auto = true
[hooks]
postinstall = ["mise deps", "mise generate git-pre-commit --task check --write"]

[tasks.build]
description = "Build the project"
depends = ["build:web"]
silent = "stdout"

[tasks."build:server"]
description = "Build the project except web"
run = "pnpm --parallel -F @drfed/graphql -F @drfed/models -F @drfed/drfed build"
silent = "stdout"

[tasks."build:web"]
description = "Build SolidStart frontend server"
depends = [
{ task = "generate:graphql-schema", args = [
"--output-file",
"packages/web/schema.graphql",
] },
]
dir = "./packages/web"
run = "pnpm run build"
run = "pnpm exec relay-compiler --noWatchman && pnpm run build"

[tasks.check]
description = "Check all"
Expand Down Expand Up @@ -77,11 +93,6 @@ run = """
node scripts/add-license/main.mts
"""

[tasks.build]
description = "Build the project"
run = "pnpm run --parallel --recursive build"
silent = "stdout"

[tasks.test]
description = "Run tests"
depends = ["build"]
Expand Down Expand Up @@ -130,7 +141,7 @@ description = "Generate GraphQL schema"
usage = """
flag "-o --output-file <file>" help="The output file for the generated GraphQL schema. - for stdout. Defaults to -"
"""
depends = ["build"]
depends = ["build:server"]
run = """
#!/usr/bin/env nu
let output_file = (if "usage_output_file" in $env { $env.usage_output_file } else { "-" })
Expand Down
103 changes: 0 additions & 103 deletions packages/web/src/routes/__generated__/HomeViewerQuery.graphql.ts

This file was deleted.