Update the JS tooling

* get rid of gulp
* use webpack-dev-server to serve app.js
* express serves static files
* 2 webpack configs: local and production
* for development with backend, websocket URL is injected
* remove unneeded static files
This commit is contained in:
David Kaltschmidt
2015-08-24 12:41:17 +02:00
parent 7ca9dd32e6
commit e518bedecb
17 changed files with 251 additions and 1175 deletions
+16 -26
View File
@@ -11,6 +11,7 @@
"debug": "^2.2.0",
"flux": "^2.0.3",
"font-awesome": "^4.3.0",
"font-awesome-webpack": "0.0.3",
"keymirror": "^0.1.1",
"lodash": "~3.9.3",
"material-ui": "~0.7.5",
@@ -28,27 +29,14 @@
"babel-core": "^5.4.7",
"babel-eslint": "^3.1.9",
"babel-loader": "^5.1.3",
"babelify": "^6.1.2",
"browser-sync": "^2.7.6",
"css-loader": "^0.14.4",
"del": "^1.2.0",
"eslint": "^0.21.2",
"eslint-loader": "^0.11.2",
"eslint-plugin-jasmine": "^1.0.0",
"eslint-plugin-react": "^2.3.0",
"express": "^4.13.3",
"express-http-proxy": "^0.6.0",
"file-loader": "^0.8.4",
"font-awesome-webpack": "0.0.3",
"gulp": "^3.8.11",
"gulp-autoprefixer": "^2.3.0",
"gulp-changed": "^1.2.1",
"gulp-connect": "^2.2.0",
"gulp-eslint": "^0.12.0",
"gulp-filter": "^2.0.2",
"gulp-if": "^1.2.5",
"gulp-load-plugins": "^0.10.0",
"gulp-preprocess": "^1.2.0",
"gulp-size": "^1.2.1",
"gulp-util": "^3.0.4",
"istanbul-instrumenter-loader": "^0.1.3",
"jasmine-core": "^2.3.4",
"karma": "^0.13.3",
@@ -59,24 +47,26 @@
"karma-webpack": "^1.7.0",
"less": "^2.5.1",
"less-loader": "^2.2.0",
"minimist": "^1.1.1",
"node-libs-browser": "^0.5.2",
"phantomjs": "^1.9.18",
"postcss-loader": "^0.4.3",
"proxy-middleware": "^0.12.0",
"proxy-middleware": "^0.13.1",
"react-hot-loader": "^1.2.8",
"react-tools": "^0.13.3",
"reactify": "^1.1.1",
"run-sequence": "^1.1.0",
"style-loader": "^0.12.3",
"url": "^0.10.3",
"url-loader": "^0.5.6",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"webpack": "^1.9.10"
"webpack": "^1.9.10",
"webpack-dev-server": "^1.10.1"
},
"scripts": {
"lint": "gulp lint",
"start": "gulp",
"test": "karma start test/karma.conf.js --single-run"
"postinstall": "npm run build",
"build": "webpack -p --config webpack.production.config.js",
"start": "node server.js",
"start-production": "NODE_ENV=production node server.js",
"test": "karma start test/karma.conf.js --single-run",
"coveralls": "cat coverage/lcov.info | coveralls",
"lint": "eslint app",
"clean": "rm build/app.js"
},
"engines": {
"node": ">=0.10.0"