npm start uses watch mode by default

for single-build dev server the new command `npm run start:single-build` is added
This commit is contained in:
Martin Raifer
2023-01-20 16:24:39 +01:00
parent 4c2c7ff037
commit e1c0873911
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -39,6 +39,8 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :bug: Bugfixes
* Fix context "edit" menu on touchscreens: render labels properly and always open the touch-specific edit menu ([#9425])
#### :hammer: Development
* `npm start` runs in _watch_ (i.e. `npm run start:watch`) mode by default (to start the dev server in _single build_ mode one can now use `npm run start:single-build`)
[#9425]: https://github.com/openstreetmap/iD/issues/9425
+2 -1
View File
@@ -34,7 +34,8 @@
"imagery": "node scripts/update_imagery.js",
"lint": "eslint scripts test/spec modules",
"lint:fix": "eslint scripts test/spec modules --fix",
"start": "run-s build:js start:server",
"start": "run-s start:watch",
"start:single-build": "run-p build:js start:server",
"start:watch": "run-p build:js:watch start:server",
"start:server": "node scripts/server.js",
"test": "npm-run-all -s lint build test:spec",