mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 21:48:03 +02:00
more changes to build scripts
- drop `build_src.js` and `build.js` - now we'll use rollup configs for all src building - add `npm run build:css` and `npm run build:data` - watcher now only watches for css file changes - src and data rebuilds are too slow to reasonably do "live" - fix `build_css.js` and `build_data.js` to either exec or export
This commit is contained in:
+6
-5
@@ -10,9 +10,9 @@
|
||||
],
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"all": "npm-run-all -s clean build build:legacy dist",
|
||||
"build": "node --max-old-space-size=4096 build.js",
|
||||
"build:all": "npm-run-all -s build:development",
|
||||
"all": "npm-run-all -s clean build:css build:data build:dev build:legacy dist",
|
||||
"build:css": "node build_css.js",
|
||||
"build:data": "node build_data.js",
|
||||
"build:dev": "rollup --config config/rollup.config.dev.js",
|
||||
"build:legacy": "rollup --config config/rollup.config.legacy.js",
|
||||
"build:stats": "rollup --config config/rollup.config.stats.js",
|
||||
@@ -31,8 +31,9 @@
|
||||
"dist:svg:temaki": "svg-sprite --symbol --symbol-dest . --shape-id-generator \"temaki-%s\" --symbol-sprite dist/img/temaki-sprite.svg node_modules/@ideditor/temaki/icons/*.svg",
|
||||
"imagery": "node data/update_imagery",
|
||||
"lint": "eslint *.js test/spec modules",
|
||||
"start": "node --max-old-space-size=4096 server.js",
|
||||
"test": "npm-run-all -s lint build:legacy test:**",
|
||||
"start": "npm-run-all -s build:css build:data build:dev start:server",
|
||||
"start:server": "node server.js",
|
||||
"test": "npm-run-all -s lint build:css build:data build:legacy test:**",
|
||||
"test:phantom": "phantomjs --web-security=no node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/phantom.html spec",
|
||||
"test:iD": "phantomjs --web-security=no node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html spec",
|
||||
"translations": "node data/update_locales"
|
||||
|
||||
Reference in New Issue
Block a user