Add .travis.yml

This commit is contained in:
uwap 2017-11-06 10:02:48 +01:00
parent c99cc70bcf
commit 20cbab2fd0
3 changed files with 12 additions and 2 deletions

9
.travis.yml Normal file
View file

@ -0,0 +1,9 @@
language: node_js
node_js:
- 6
- 7
- 8
script:
- yarn travis
cache:
yarn: true

View file

@ -6,7 +6,8 @@
"scripts": { "scripts": {
"build": "webpack --bail --config webpack.dev.js", "build": "webpack --bail --config webpack.dev.js",
"production-build": "webpack --bail --config webpack.prod.js", "production-build": "webpack --bail --config webpack.prod.js",
"watch": "webpack-dev-server --open --config webpack.dev.js" "watch": "webpack-dev-server --open --config webpack.dev.js",
"travis": "npm run build && npm run production-build"
}, },
"dependencies": { "dependencies": {
"babel-preset-env": "^1.6.0", "babel-preset-env": "^1.6.0",

View file

@ -27,7 +27,7 @@ module.exports = {
}, },
plugins: [ plugins: [
new CleanWebpackPlugin(["dist"]), new CleanWebpackPlugin(["dist"]),
// new WebpackShellPlugin({onBuildStart:preBuildScripts}), new WebpackShellPlugin({onBuildStart:preBuildScripts}),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
title: 'Space Map', title: 'Space Map',
template: 'index.ejs' template: 'index.ejs'