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

X-original-commit: 6aede4d
Part-of: #2204
  • Loading branch information
LucasLefevre authored and rrahir committed Mar 9, 2023
1 parent 3b23d4e commit aa58c5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
],
"scripts": {
"serve-static": "live-server --open=demo --watch=build/o_spreadsheet.js,build/o_spreadsheet.xml,demo",
"dev": "npm-run-all build --parallel server serve-static watch:*",
"dev": "npm-run-all --print-label build --parallel server serve-static watch:*",
"server": "node tools/server/main.js",
"build:js": "tsc --module es6 --incremental",
"bundle:js": "rollup -c -m --configDev",
"bundle:xml": "node tools/bundle_xml/main.js",
"build": "npm-run-all build:js bundle:js \"bundle:xml -- --outDir build\"",
"build:bundleJs": "rollup -c -m --configDev",
"build:bundleXml": "node tools/bundle_xml/main.js",
"build": "npm-run-all build:js build:bundleJs \"build:bundleXml -- --outDir build\"",
"doc": "typedoc",
"precommit": "npm run prettier && npm run doc",
"test": "jest",
"test:watch": "jest --watch",
"prettier": "prettier . --write",
"check-formatting": "prettier . --check",
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run bundle:xml -- --outDir dist",
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run build:bundleXml -- --outDir dist",
"prepare": "husky install",
"watch:bundle": "npm run bundle:js -- --watch",
"watch:bundle": "npm run build:bundleJs -- --watch",
"watch:ts": "npm run build:js -- --watch",
"watch:xml": "node tools/bundle_xml/watch_xml_templates.js",
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.js",
Expand Down

0 comments on commit aa58c5a

Please sign in to comment.