|
@@ -4,19 +4,23 @@
|
|
"scripts": {
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"postinstall": "npm run compile",
|
|
"postinstall": "npm run compile",
|
|
|
|
+ "compile": "cross-env NODE_ENV=production npm run compile-both",
|
|
|
|
+ "compile-dev": "npm run compile-src && npm run compile-test; npm run compile-frontend",
|
|
|
|
+ "compile-both": "npm run compile-src; npm run compile-frontend",
|
|
"compile-test": "babel test --out-dir test-build",
|
|
"compile-test": "babel test --out-dir test-build",
|
|
"compile-src": "babel src --out-dir build",
|
|
"compile-src": "babel src --out-dir build",
|
|
"compile-frontend": "webpack src/main.js build/bundle.js --module-bind 'js=babel-loader'",
|
|
"compile-frontend": "webpack src/main.js build/bundle.js --module-bind 'js=babel-loader'",
|
|
"compile": "npm run compile-src; npm run compile-test; npm run compile-frontend",
|
|
"compile": "npm run compile-src; npm run compile-test; npm run compile-frontend",
|
|
- "watch": "nodemon --watch src --watch test --watch styles -e js,css,html --exec \"npm run compile --silent\""
|
|
|
|
|
|
+ "watch": "nodemon --watch src --watch test --watch styles -e js,css,html --exec \"npm run compile-dev --silent\""
|
|
},
|
|
},
|
|
- "private": true,
|
|
|
|
"dependencies": {
|
|
"dependencies": {
|
|
"babel-cli": "^6.6.5",
|
|
"babel-cli": "^6.6.5",
|
|
"babel-core": "^6.7.7",
|
|
"babel-core": "^6.7.7",
|
|
"babel-loader": "^6.2.4",
|
|
"babel-loader": "^6.2.4",
|
|
|
|
+ "babel-plugin-transform-remove-console": "^6.8.0",
|
|
"babel-preset-es2015": "^6.6.0",
|
|
"babel-preset-es2015": "^6.6.0",
|
|
"babel-preset-react": "^6.5.0",
|
|
"babel-preset-react": "^6.5.0",
|
|
|
|
+ "cross-env": "^1.0.8",
|
|
"react": "^15.0.1",
|
|
"react": "^15.0.1",
|
|
"react-dom": "^15.0.1",
|
|
"react-dom": "^15.0.1",
|
|
"webpack": "^1.13.0"
|
|
"webpack": "^1.13.0"
|
|
@@ -24,5 +28,6 @@
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
"blue-tape": "^0.2.0",
|
|
"blue-tape": "^0.2.0",
|
|
"nodemon": "^1.9.1"
|
|
"nodemon": "^1.9.1"
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ "private": true
|
|
}
|
|
}
|