Skip to content

Commit 69cc7d8

Browse files
authored
feat: dev:debug command (#94)
1 parent 5e14428 commit 69cc7d8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"build:src": "babel src --out-dir dist --extensions .js,.jsx,.ts,.tsx --source-maps",
2828
"build:src:watch": "npm run build:src -- --watch 'src/**/*' --verbose",
2929
"build:watch": "onchange 'src/**/*' --initial --kill --delay 1000 -- npm run build",
30-
"dev": "npm run build:src:watch",
30+
"dev": "NODE_ENV=development npm run build:src:watch",
31+
"dev:debug": "DEBUG=* npm run dev",
32+
"dev:debug:app": "DEBUG=create-exposed-app npm run dev",
3133
"display-browser-support": "browserslist --stats && echo '' && browserslist --coverage && echo '' && echo 'See more at https://browserl.ist/'",
3234
"format": "run-s format:doctoc format:package format:imports format:prettier format:eslint",
3335
"format:doctoc": "doctoc --maxlevel 3 --notitle ./README.md ./DEVELOPING.md",

templates/package.json.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"build:src:watch": "npm run build:src -- --watch 'src/**/*' --verbose",
2525
"build:watch": "onchange 'src/**/*' --initial --kill --delay 1000 -- npm run build",
2626
"dev": "NODE_ENV=development npm run build-serve:watch",
27+
"dev:debug": "DEBUG=* npm run dev",
28+
"dev:debug:app": "DEBUG=<%- projectPackageName %> npm run dev",
2729
"display-browser-support": "browserslist --stats && echo '' && browserslist --coverage && echo '' && echo 'See more at https://browserl.ist/'",
2830
"format": "run-s format:doctoc format:package format:imports format:prettier format:eslint",
2931
"format:doctoc": "doctoc --maxlevel 3 --notitle ./README.md ./DEVELOPING.md",

0 commit comments

Comments
 (0)