pull/276/head
Rick Carlino 2016-09-22 17:20:17 -05:00
parent 985742b54d
commit 8b376aa97b
3 changed files with 11 additions and 7 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
rm -rf /tmp/farmbot_frontend
mkdir /tmp/farmbot_frontend
git clone https://github.com/farmbot/farmbot-web-frontend.git /tmp/farmbot_frontend
@ -6,6 +7,7 @@ rm -rf /tmp/farmbot_frontend/.git
mkdir public/ -p
cp -R /tmp/farmbot_frontend/* public/
cd public
npm install webpack
npm install
npm run build
npm install webpack 2>&1
npm install i18n-webpack-plugin 2>&1
npm install 2>&1
npm run build 2>&1

View File

@ -1,5 +1,4 @@
var path = require('path');
var open = require('open');
module.exports = function (config) {
config.set({
@ -13,6 +12,6 @@ module.exports = function (config) {
'tests.webpack.js': ['webpack'],
},
reporters: [ 'progress' ],
webpack: require("./tools/webpack.config.base.js"),
webpack: require("./tools/webpack.config.test.js"),
});
};

View File

@ -8,7 +8,7 @@
"url": "https://github.com/farmbot/farmbot-web-frontend"
},
"scripts": {
"build": "webpack --config tools/webpack.config.prd.js",
"build": "webpack --config tools/webpack.config.prd.js --display-error-details",
"start": "webpack-dev-server --config tools/webpack.config.dev.js",
"test": "karma start karma.config.js"
},
@ -35,12 +35,15 @@
"sass-loader": "^3.1.2",
"style-loader": "^0.13.0",
"ts-loader": "^0.8.1",
"webpack": "^1.12.11",
"webpack": "^1.12.11"
},
"optionalDependencies": {
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"axios": "^0.13.0",
"farmbot": "1.3.4",
"i18n-webpack-plugin": "^0.3.0",
"joi-browser": "^8.0.5",
"jquery": "^2.1.4",
"lodash": "^3.10.1",