Skip to content
Extraits de code Groupes Projets
Valider 04ab8135 rédigé par Steel's avatar Steel
Parcourir les fichiers

prebuild scripts

parent 76642e7d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,6 +22,4 @@ vite.config.ts.timestamp-* ...@@ -22,6 +22,4 @@ vite.config.ts.timestamp-*
static/*.jpg static/*.jpg
src/graphql.d.ts
.vscode
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
...@@ -11,14 +11,15 @@ ...@@ -11,14 +11,15 @@
"start": "node build", "start": "node build",
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
"prebuild": "npm run pull-schema", "prebuild": "npm run schema && npm run graphql-dts",
"preview": "vite preview", "preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .", "lint": "prettier --check . && eslint .",
"format": "prettier --write .", "format": "prettier --write .",
"schema-env": "gql.tada generate-schema $API_ORIGIN/graphql/v0 --header \"Authorization: Basic $API_TOKEN\" -o src/lib/graphql/schema.gql", "schema-env": "gql.tada generate-schema $API_ORIGIN/graphql/v0 --header \"Authorization: Basic $API_TOKEN\" -o src/lib/graphql/schema.gql",
"schema": "dotenv -- pnpm run schema-env" "schema": "dotenv -- pnpm run schema-env",
"graphql-dts": "gql.tada generate-output"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-node": "^5.2.2", "@sveltejs/adapter-node": "^5.2.2",
......
Ce diff est replié.
Ce diff est replié.
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{ {
"name": "gql.tada/ts-plugin", "name": "gql.tada/ts-plugin",
"schema": "./src/lib/graphql/schema.gql", "schema": "./src/lib/graphql/schema.gql",
"tadaOutputLocation": "./src/graphql-env.d.ts" "tadaOutputLocation": "./src/graphql.d.ts"
} }
] ]
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter