Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

feat(project): add nodemon for development #7

Merged
merged 4 commits into from
Dec 14, 2018
Merged

Conversation

JacopoDaeli
Copy link
Contributor

No description provided.

@JacopoDaeli JacopoDaeli self-assigned this Dec 14, 2018
@JacopoDaeli JacopoDaeli mentioned this pull request Dec 14, 2018
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",
Copy link
Contributor

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.

Copy link
Contributor Author

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",
Copy link
Contributor

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.

Copy link
Contributor Author

@JacopoDaeli JacopoDaeli Dec 14, 2018

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.

@JacopoDaeli JacopoDaeli merged commit ec25cbd into master Dec 14, 2018
@JacopoDaeli JacopoDaeli deleted the jdaeli/startDev01 branch December 14, 2018 18:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants