From 810cc002c936e92fb63f1193f14409b739813075 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Wed, 18 Jan 2017 10:02:15 -0700 Subject: [PATCH 1/2] add nodemon config to prevent server restart while developing front end --- nodemon.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 nodemon.json diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 000000000..834e6c054 --- /dev/null +++ b/nodemon.json @@ -0,0 +1,4 @@ +{ + "verbose": true, + "ignore": ["tests/*", "client/*", "dist/*"] +} From f9bc6237647941e964eaff8e2a5af50d910abfb9 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Wed, 18 Jan 2017 10:10:47 -0700 Subject: [PATCH 2/2] make a hidden file --- nodemon.json => .nodemon.json | 0 package.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename nodemon.json => .nodemon.json (100%) diff --git a/nodemon.json b/.nodemon.json similarity index 100% rename from nodemon.json rename to .nodemon.json diff --git a/package.json b/package.json index e6e211d07..7948d5aa3 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "app.js", "scripts": { "start": "./bin/cli serve --jobs", - "dev-start": "nodemon --exec \"./bin/cli -c .env serve --jobs\"", + "dev-start": "nodemon --config .nodemon.json --exec \"./bin/cli -c .env serve --jobs\"", "build": "NODE_ENV=production webpack --config webpack.config.js --bail", "build-watch": "NODE_ENV=development webpack --config webpack.config.dev.js --watch", "lint": "eslint bin/* .",