From 0ab16676a62f386bc7861ae6b7fefe486c2addc7 Mon Sep 17 00:00:00 2001 From: Hacksore Date: Sun, 11 Feb 2018 13:18:14 -0600 Subject: [PATCH] Add basic implementation of real time development watching --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 26499f5..13f2298 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,10 @@ "scripts": { "build": "rollup -c tools/rollup.module.js && rollup -c tools/rollup.browser.js && rollup -c tools/rollup.browser.min.js", "prepare": "npm test && rm -rf build && npm run build", - "test": "eslint --env browser src/** && eslint --env node tools/** && tslint -c tslint.json types/**.ts" + "test": "eslint src/** tools/** && tslint -c tslint.json types/**.ts", + "dev": "npm-run-all --parallel watch serve", + "watch": "rollup -w -c tools/rollup.browser.min.js", + "serve": "ws" }, "repository": { "type": "git", @@ -34,6 +37,8 @@ "babel-plugin-external-helpers": "^6.22.0", "babel-preset-env": "^1.6.1", "eslint": "^4.16.0", + "local-web-server": "^2.4.0", + "npm-run-all": "^4.1.2", "rollup": "^0.55.3", "rollup-plugin-babel": "^3.0.3", "rollup-plugin-license": "^0.5.0",