File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,16 @@ npm install
5151
5252Start server:
5353``` sh
54- # set DEBUG env variable to get debug logs
54+ # Start server
55+ npm start
56+
57+ # Selectively set DEBUG env var to get logs
5558DEBUG=express-mongoose-es6-rest-api:* npm start
56- # OR
57- # requires gulp to be installed globally
58- npm i -g gulp
59- gulp serve
6059```
60+ Refer [ debug] ( https://www.npmjs.com/package/debug ) to know how to selectively turn on logs.
61+
6162
62- Execute tests :
63+ Tests :
6364``` sh
6465# Run tests written in ES6 along with code coverage
6566npm test
@@ -71,14 +72,19 @@ npm run test:watch
7172npm run test:check-coverage
7273```
7374
74- Other gulp tasks :
75+ Lint :
7576``` sh
76- # Wipe out dist and coverage directory
77- gulp clean
78-
7977# Lint code with ESLint
8078npm run lint
79+
80+ # Run lint on any file change
8181npm run lint:watch
82+ ```
83+
84+ Other gulp tasks:
85+ ``` sh
86+ # Wipe out dist and coverage directory
87+ gulp clean
8288
8389# Default task: Wipes out dist and coverage directory. Compiles using babel.
8490gulp
8894
8995``` sh
9096# compile to ES5
91- 1. npm run build or gulp
97+ 1. npm run build
9298
9399# upload dist/ to your server
941002. scp -rp dist/ user@dest:/path
You can’t perform that action at this time.
0 commit comments