From e2b5e28e07747bf1f720ee73c687e55d4bc80b22 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 22 Aug 2016 00:26:26 -0700 Subject: [PATCH] add `npm run watch` command --- .nodemonignore | 2 ++ package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .nodemonignore diff --git a/.nodemonignore b/.nodemonignore new file mode 100644 index 00000000..edd9d60a --- /dev/null +++ b/.nodemonignore @@ -0,0 +1,2 @@ +build/ +dist/ diff --git a/package.json b/package.json index 2b76fb5e..e6958bec 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "minimist": "^1.2.0", "mkdirp": "^0.5.1", "nobin-debian-installer": "^0.0.10", + "nodemon": "^1.10.2", "open": "0.0.5", "plist": "^2.0.1", "rimraf": "^2.5.2", @@ -94,6 +95,7 @@ "prepublish": "npm run build", "start": "npm run build && electron .", "test": "standard && node ./bin/check-deps.js", - "update-authors": "./bin/update-authors.sh" + "update-authors": "./bin/update-authors.sh", + "watch": "nodemon --exec 'npm run start' --ext js,pug,css" } }