Added new cleanup and copy scripts

This commit is contained in:
Chris
2015-09-08 19:42:25 +02:00
parent 6120960959
commit c9ad7660cf
3 changed files with 25 additions and 9 deletions
+12 -6
View File
@@ -1,16 +1,18 @@
{
"name": "react-webpack-template",
"version": "0.0.3",
"description": "Base template for react and webpack",
"version": "0.0.4",
"description": "A base skeleton template for react and webpack without task runners",
"main": "index.js",
"scripts": {
"start": "node server.js --env=dev",
"test": "karma start",
"posttest": "npm run lint",
"serve": "node server.js --env=dev",
"servedist": "node server.js --env=dist",
"dist": "webpack --env=dist",
"lint": "eslint ./src"
"serve:dist": "node server.js --env=dist",
"dist": "npm run copy & webpack --env=dist",
"lint": "eslint ./src",
"copy": "copyfiles -f ./src/index.html ./dist",
"clean": "rimraf dist/*"
},
"repository": {
"type": "git",
@@ -19,7 +21,9 @@
"keywords": [
"React",
"Webpack",
"Babel"
"Babel",
"Boilerplate",
"Demo"
],
"author": "Christian Schilling (cs@weblogixx.de)",
"license": "MIT",
@@ -31,6 +35,7 @@
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"chai": "^3.2.0",
"copyfiles": "^0.2.1",
"css-loader": "^0.16.0",
"eslint": "^1.2.1",
"eslint-loader": "^1.0.0",
@@ -50,6 +55,7 @@
"open": "0.0.5",
"phantomjs": "^1.9.18",
"react-hot-loader": "^1.2.9",
"rimraf": "^2.4.3",
"style-loader": "^0.12.3",
"url-loader": "^0.5.6",
"webpack": "^1.12.0",