mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Create separate commands for dev and production
This commit is contained in:
+4
-3
@@ -8,11 +8,12 @@
|
||||
"assets:clean": "node scripts/clean-assets.js",
|
||||
"assets:compress": "node scripts/compress-to-spz.js",
|
||||
"assets:download": "node scripts/download-assets.js",
|
||||
"build": "vite build --mode production && vite build --mode dev",
|
||||
"build:dev": "vite build --mode dev",
|
||||
"build:production": "vite build --mode production",
|
||||
"build:wasm": "node rust/build_wasm.js",
|
||||
"build:watch": "onchange 'src/**/*.{ts,glsl}' -- npm run build",
|
||||
"build:watch": "onchange 'src/**/*.{ts,glsl}' -- npm run build:dev",
|
||||
"clean": "rm -rf dist/ && rm -rf node_modules/ && rm -rf rust/target/ && rm -rf rust/forge-internal-rs/pkg/ && npm run assets:clean",
|
||||
"dev": "npm run build && (vite --host & npm run build:watch)",
|
||||
"dev": "npm run build:dev && (vite --host & npm run build:watch)",
|
||||
"docs": "mkdocs serve",
|
||||
"format": "biome format .",
|
||||
"format:fix": "biome format . --fix",
|
||||
|
||||
Reference in New Issue
Block a user