Skip to content

Commit

Permalink
chore: simplifying NPM generate scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
holloway committed Dec 12, 2024
1 parent 8c3b969 commit 0c00e7d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
"private": true,
"type": "module",
"scripts": {
"build": "npm run generate:content-metadata && npm run generate:api-red && nuxt build",
"dev": "npm run generate:content-metadata && npm run generate:api-red && nuxt dev",
"build": "npm run generate && nuxt build",
"dev": "npm run generate && nuxt dev",
"cleanup": "nuxt cleanup",
"preview": "npm run build && nuxt preview",
"postinstall": "nuxt prepare",
"test": "npm run test:unittests && npm run test:types && npm run test:lint",
"test:lint": "eslint .",
"test:lint": "eslint .",
"test:lint:fix": "eslint . --fix",
"test:types": "npx nuxi typecheck",
"test:unittests": "vitest run",
"test:unittests": "vitest run",
"test:story": "npm run story:build && LOST_PIXEL_DISABLE_TELEMETRY=1 npx --no lost-pixel docker",
"test:story:view": "npx --no -c 'vite dev ./visual-regression-viewer'",
"test:story:approve": "npm run story:build && LOST_PIXEL_DISABLE_TELEMETRY=1 npx --no lost-pixel docker update",
"test:story:approve": "npm run story:build && LOST_PIXEL_DISABLE_TELEMETRY=1 npx --no lost-pixel docker update",
"story:dev": "histoire dev",
"story:build": "histoire build",
"story:preview": "histoire preview --port 4567",
"generate": "npm run generate:content-metadata && npm run generate:api-red",
"generate:content-metadata": "node --experimental-strip-types ./scripts/generate-content-metadata.ts",
"generate:api-red": "npx --no apigen-ts http://localhost:8000/api/schema/ --parse-dates ./generated/red-client.ts"
},
Expand Down

0 comments on commit 0c00e7d

Please sign in to comment.