Skip to content

Commit

Permalink
feat: adding spectacular/role-houdini plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jul 7, 2024
1 parent 4a8345a commit 1f6a2ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"build": "dotenv-run -f .env -f .secrets -v -- vite build",
"build:prod": "NODE_ENV=prod dotenv-run -f .env -f .secrets -v -- vite build",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"dev": "dotenv-run -f .env -f .secrets -v -- vite dev",
Expand Down
23 changes: 21 additions & 2 deletions apps/console/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"inputs": ["$TURBO_DEFAULT$", ".env", ".secrets"]
},
"dev:debug": {
"dependsOn": ["sync"],
"dependsOn": ["sync", "@spectacular/role-houdini#build"],
"cache": false,
"persistent": true,
"inputs": ["$TURBO_DEFAULT$", ".env", ".secrets"]
},
"dev:prod": {
"dependsOn": ["sync"],
"dependsOn": ["sync", "@spectacular/role-houdini#build"],
"cache": false,
"persistent": true,
"inputs": ["$TURBO_DEFAULT$", ".env", ".env.prod", ".secrets", ".secrets.prod"]
Expand All @@ -52,6 +52,25 @@
"npm_package_version"
]
},
"build:prod": {
"dependsOn": ["generate", "^build"],
"outputs": [".svelte-kit/**", ".vercel/**", "$houdini/**", "schema.graphql", "src/i18n"],
"env": [
"VERCEL",
"VERCEL_URL",
"VERCEL_ENV",
"FLAGS_SECRET",
"BUILD_VERSION",
"BUILD_TIME",
"BUN_ENV",
"SW_DEV",
"GCP_BUILDPACKS",
"OPENAI_ORG_ID",
"OPENAI_PROJECT_ID",
"OPENAI_API_KEY",
"npm_package_version"
]
},
"preview": {},
"test:unit:coverage": {
"dependsOn": ["sync", "^test:unit:coverage"]
Expand Down

0 comments on commit 1f6a2ce

Please sign in to comment.