summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-12-02 00:38:23 +1100
committerSaivan <savian@me.com>2018-12-02 00:38:23 +1100
commitd549b00dc9d593e121236c64ab7c8f986a0800ac (patch)
tree892b8a7bfbdde6116d04833c42abbc41ba84d34e /package.json
parent0a357dd3063bcb18ccf7de446f206e8598bea9a1 (diff)
downloadsvg.js-d549b00dc9d593e121236c64ab7c8f986a0800ac.tar.gz
svg.js-d549b00dc9d593e121236c64ab7c8f986a0800ac.zip
Implemented random colors and added back the playgrounds
This commit adds back the playgrounds and the npm demo. We also implemented a few methods to generate pretty random colors. Changes ======= - Added back the playgrounds and the npm demos - Implemented a few random color generators
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 7 insertions, 2 deletions
diff --git a/package.json b/package.json
index 619b1f2..8be4f30 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,8 @@
"test": "npx karma start .config/karma.conf.js --single-run",
"test:dots": "npx karma start .config/karma.conf.js --single-run --reporters dots",
"test:quick": "npx karma start .config/karma.quick.js",
- "server": "npx http-server ./ -d"
+ "server": "npx http-server ./ -d",
+ "demo": "run () { cd playgrounds; ../node_modules/.bin/webpack-dev-server --env=$1; }; run"
},
"devDependencies": {
"@babel/core": "^7.1.2",
@@ -93,7 +94,11 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-uglify": "^6.0.0",
"rollup-plugin-uglify-es": "0.0.1",
- "svgdom": "latest"
+ "svgdom": "latest",
+ "webpack": "^4.26.1",
+ "webpack-cli": "^3.1.2",
+ "webpack-dev-server": "^3.1.10",
+ "yargs": "^12.0.5"
},
"dependencies": {},
"optionalDependencies": {}