From 3914e3082d49365326231c8a574077bda3fce7c8 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Fri, 30 Nov 2018 14:01:26 -0500 Subject: [PATCH] feature: add "babel:watch" to trigger automatic rebuilds. --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 4f59eb1..f045bf1 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,9 @@ "babel:browser": "cross-env BABEL_ENV=browser babel --out-dir dist/browser src", "babel:node": "cross-env BABEL_ENV=node babel --out-dir dist src", "babel:node:async": "cross-env BABEL_ENV=node:async babel --out-dir dist src/node", + "babel:watch": "npm-run-all -p babel:watch:*", + "babel:watch:browser": "npm run babel:browser -- --verbose --watch", + "babel:watch:node": "npm run babel:node -- --verbose --watch", "build": "npm run clean && npm run babel && npm run webpack", "clean": "rimraf dist embark.min.js embarkjs-*.tgz package", "http-server": "http-server", @@ -60,6 +63,7 @@ "ajv": "6.5.2", "cross-env": "5.2.0", "http-server": "0.11.1", + "npm-run-all": "4.1.5", "rimraf": "2.6.2", "webpack": "4.16.1", "webpack-cli": "3.0.8"