Skip to content

Commit 6aede4d

Browse files
LucasLefevrerrahir
authored andcommitted
[IMP] package: add task label
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: #2202
1 parent 1eee732 commit 6aede4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
],
1313
"scripts": {
1414
"serve-static": "live-server --open=demo --watch=build/o_spreadsheet.js,build/o_spreadsheet.xml,demo",
15-
"dev": "npm-run-all build --parallel server serve-static watch:*",
15+
"dev": "npm-run-all --print-label build --parallel server serve-static watch:*",
1616
"server": "node tools/server/main.js",
1717
"build:js": "tsc --module es6 --incremental",
18-
"bundle:js": "rollup -c -m --configDev",
19-
"bundle:xml": "node tools/bundle_xml/main.js",
20-
"build": "npm-run-all build:js bundle:js \"bundle:xml -- --outDir build\"",
18+
"build:bundleJs": "rollup -c -m --configDev",
19+
"build:bundleXml": "node tools/bundle_xml/main.js",
20+
"build": "npm-run-all build:js build:bundleJs \"build:bundleXml -- --outDir build\"",
2121
"doc": "typedoc",
2222
"precommit": "npm run prettier && npm run doc",
2323
"test": "jest",
2424
"test:watch": "jest --watch",
2525
"prettier": "prettier . --write",
2626
"check-formatting": "prettier . --check",
27-
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run bundle:xml -- --outDir dist",
27+
"dist": "tsc --module es6 --declaration --declarationDir dist/types && rollup -c && npm run build:bundleXml -- --outDir dist",
2828
"prepare": "husky install",
29-
"watch:bundle": "npm run bundle:js -- --watch",
29+
"watch:bundle": "npm run build:bundleJs -- --watch",
3030
"watch:ts": "npm run build:js -- --watch",
3131
"watch:xml": "node tools/bundle_xml/watch_xml_templates.js",
3232
"unzipXlsx": "node tools/bundle_xlsx/unzip_xlsx_demo.js",

0 commit comments

Comments
 (0)