From 31ab7bd71c9d2aded1b2c3cb14fd8ca285e303c6 Mon Sep 17 00:00:00 2001 From: princenazi Date: Wed, 20 Feb 2019 12:19:20 +0100 Subject: [PATCH] Chore(compiler):Recompile on save This PR implements recompiling the files on every save, the current implementation defeats the purpose of nodemon because when files change in the lib directory, they are not recompiled until npm start or npm run serve is ran again --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index de4d1f0..39ee9f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dist node_modules +.history \ No newline at end of file diff --git a/package.json b/package.json index db35c18..4f2de58 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "build": "babel lib -d dist", - "start": "npm run build && nodemon dist/index.js", + "start": "npm run build && nodemon --watch lib --exec npm run serve", "serve": "npm run build && node dist/index.js", "test": "npm run build && mocha --require babel-register" },