Skip to content

Commit

Permalink
Add debug log level start commands
Browse files Browse the repository at this point in the history
This patch adds the npm run start:backend:debug to the browser example to
start the backend with a debug log level.

It also add the npm run start:debug command to the electron example for
the same purpose.

Signed-off-by: Antoine Tremblay <antoine.tremblay@ericsson.com>
  • Loading branch information
Antoine Tremblay committed Jun 8, 2017
1 parent e137eb2 commit 94ab990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"lint": "tslint -c ../../config/tslint/tslint.json --project ./tsconfig.json",
"start": "concurrently --names backend,webpack-server --prefix \"[{name}]\" \"npm run start:backend\" \"npm run start:frontend\"",
"start:backend": "node ./lib/backend/main.js | bunyan",
"start:backend:debug": "node ./lib/backend/main.js --loglevel=debug | bunyan",
"start:frontend": "webpack-dev-server --open",
"cold:start": "npm run clean && npm run build && npm start",
"watch": "concurrently --names watch-deps,watch-backend,watch-frontend --prefix \"[{name}]\" \"npm run watch:localdeps\" \"npm run watch:backend\" \"npm run watch:frontend\"",
Expand Down
1 change: 1 addition & 0 deletions examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"build:localdeps": "ldm run build && ldm sync",
"lint": "tslint -c ../../config/tslint/tslint.json --project ./tsconfig.json",
"start": "electron ./lib/frontend/electron-main.js | bunyan",
"start:debug": "electron ./lib/frontend/electron-main.js --loglevel=debug | bunyan",
"cold:start": "npm run clean && npm run build && npm start",
"watch": "concurrently --names watch-deps,watch-backend,watch-frontend --prefix \"[{name}]\" \"npm run watch:localdeps\" \"npm run watch:backend\" \"npm run watch:frontend\"",
"watch:backend": "tsc --watch",
Expand Down

0 comments on commit 94ab990

Please sign in to comment.