Skip to content

Commit

Permalink
package.json: copy shaders before starting examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sguimmara committed Jan 6, 2025
1 parent 2b2d984 commit 362bcae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"build": "ttsc",
"watch": "npm run prepack && ttsc --watch",
"doc": "typedoc --readme none --name Hammerhead.gl src/index.ts",
"start": "vite examples",
"prepack": "shx rm -fr dist/ && shx mkdir dist && npx copyfiles -u 1 './src/**/*.wgsl' dist && node scripts/prepare-package.mjs && npm run build",
"copy-shaders": "npx copyfiles -u 1 './src/**/*.wgsl' dist",
"start": "npm run copy-shaders && vite examples",
"prepack": "shx rm -fr dist/ && shx mkdir dist && npm run copy-shaders && node scripts/prepare-package.mjs && npm run build",
"prepare": "husky install",
"pages": "npm run prepack && cd examples && npx vite build --base=/hammerhead.gl/",
"prepare-examples": "node scripts/generate-example-index.mjs"
Expand Down

0 comments on commit 362bcae

Please sign in to comment.