-
Notifications
You must be signed in to change notification settings - Fork 404
feat(project): add nodemon for development #7
Conversation
package.json
Outdated
@@ -6,7 +6,7 @@ | |||
"scripts": { | |||
"coverage": "nyc ./node_modules/mocha/bin/_mocha --recursive lib", | |||
"lint": "eslint-godaddy --ignore-pattern /coverage/ ./", | |||
"start": "./bin/daemon.js", | |||
"start": "if [ \"$DISABLE_NODEMON\" = \"true\" ]; then bin/daemon.js; else nodemon bin/daemon.js; fi", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a "nodemon" script instead of doing the config from the environment variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 done!
package.json
Outdated
@@ -7,6 +7,7 @@ | |||
"coverage": "nyc ./node_modules/mocha/bin/_mocha --recursive lib", | |||
"lint": "eslint-godaddy --ignore-pattern /coverage/ ./", | |||
"start": "./bin/daemon.js", | |||
"start-development": "nodemon ./bin/daemon.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo "nodemon" is clearer and more explicitly communicates what's going on. it also matches other internal projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely, I didn't know we have this convention.
No description provided.