Skip to content

Commit

Permalink
[IMP] package: add task label
Browse files Browse the repository at this point in the history
Add the task label before every log line in the console.
This helps to know what is logging what.

The current task \"build:* -- --watch\" is split into smaller
task without argument. Otherwise, the labels would also include
the argument, making it very long
[build:js -- --watch] => [watch:ts]

the "serve" task is also rename to better reflect what it does:
serving static files.
In v15, we also have a "server" task which could be confusing

Part-of: #2197
  • Loading branch information
LucasLefevre authored and rrahir committed Mar 9, 2023
1 parent ebc1eed commit 654a41e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
"dist/*.d.ts"
],
"scripts": {
"serve": "live-server --open=demo --watch=build,demo",
"dev": "npm-run-all build --parallel server serve \"build:* -- --watch\"",
"serve-static": "live-server --open=demo --watch=build,demo",
"dev": "npm-run-all --print-label build --parallel server serve-static watch:*",
"server": "node tools/server/main.js",
"build:js": "tsc --module es6 --incremental",
"build:bundle": "rollup -c -m --configDev",
"watch:ts": "npm run build:js -- --watch",
"watch:bundle": "npm run build:bundle -- --watch",
"build": "npm run build:js && npm run build:bundle",
"doc": "typedoc",
"precommit": "npm run prettier && npm run doc",
Expand Down

0 comments on commit 654a41e

Please sign in to comment.