chore: bump deps & fix tests

This commit is contained in:
Evan You
2018-02-28 17:08:12 -05:00
parent 061dcc6122
commit 6e4870c6a1
15 changed files with 1381 additions and 1372 deletions
@@ -22,7 +22,7 @@
"access": "public"
},
"dependencies": {
"cypress": "^2.0.3",
"cypress": "^2.0.4",
"eslint-plugin-cypress": "^2.0.1"
}
}
@@ -26,6 +26,6 @@
"deepmerge": "^2.0.1",
"execa": "^0.9.0",
"nightwatch": "^0.9.19",
"selenium-server": "^3.8.1"
"selenium-server": "^3.9.1"
}
}
@@ -64,7 +64,7 @@ test('should work', async () => {
await write('vue.config.js', 'module.exports = { lintOnSave: true }')
// write invalid file
const app = await read('src/App.vue')
const updatedApp = app.replace(/;/g, '')
const updatedApp = app.replace(/;/, '')
await write('src/App.vue', updatedApp)
const server = run('vue-cli-service serve')
@@ -72,12 +72,14 @@ test('should work', async () => {
let isFirstMsg = true
server.stdout.on('data', data => {
data = data.toString()
if (data.match(/Failed to compile/)) {
if (data.match(/Compiled with \d warning/)) {
// should fail on start
expect(isFirstMsg).toBe(true)
isFirstMsg = false
// fix it
write('src/App.vue', app)
setTimeout(() => {
write('src/App.vue', app)
}, 100)
} else if (data.match(/Compiled successfully/)) {
// should compile on 2nd update
expect(isFirstMsg).toBe(false)
+1
View File
@@ -1,5 +1,6 @@
module.exports = (api, { lintOnSave }) => {
if (lintOnSave) {
console.log(lintOnSave)
const options = require('./eslintOptions')(api)
api.chainWebpack(webpackConfig => {
webpackConfig.module
+4 -4
View File
@@ -22,9 +22,9 @@
"access": "public"
},
"dependencies": {
"babel-eslint": "^8.2.1",
"eslint": "^4.16.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-vue": "^4.2.2"
"babel-eslint": "^8.2.2",
"eslint": "^4.18.1",
"eslint-loader": "^2.0.0",
"eslint-plugin-vue": "^4.3.0"
}
}
@@ -23,11 +23,11 @@
},
"dependencies": {
"@types/node": "^9.3.0",
"fork-ts-checker-webpack-plugin": "^0.3.0",
"globby": "^7.1.1",
"fork-ts-checker-webpack-plugin": "^0.4.0",
"globby": "^8.0.1",
"ts-loader": "^3.4.0",
"tslint": "^5.9.1",
"typescript": "^2.7.1"
"typescript": "^2.7.2"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "7 || ^7.0.0-beta || ^7.0.0-rc",
@@ -23,9 +23,9 @@
},
"dependencies": {
"execa": "^0.9.0",
"jest": "^22.1.4",
"jest": "^22.4.2",
"jest-serializer-vue": "^0.3.0",
"vue-jest": "^2.0.0"
"vue-jest": "^2.1.0"
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.10",
@@ -25,8 +25,8 @@
"@vue/cli-plugin-babel": "^3.0.0-beta.1",
"@vue/cli-plugin-eslint": "^3.0.0-beta.1",
"@vue/cli-service": "^3.0.0-beta.1",
"chalk": "^2.3.0",
"eslint-plugin-vue": "^4.2.2",
"chalk": "^2.3.1",
"eslint-plugin-vue": "^4.3.0",
"resolve": "^1.5.0",
"vue": "^2.5.13"
}
@@ -86,6 +86,7 @@ module.exports = (api, options) => {
return
}
console.log()
console.log([
` App running at:`,
` - Local: ${chalk.cyan(urls.localUrlForTerminal)}`,
+14 -14
View File
@@ -25,43 +25,43 @@
"@vue/cli-shared-utils": "^3.0.0-beta.1",
"@vue/web-component-wrapper": "^1.2.0",
"address": "^1.0.3",
"autodll-webpack-plugin": "^0.3.8",
"autoprefixer": "^7.2.5",
"cache-loader": "^1.2.0",
"autodll-webpack-plugin": "^0.3.9",
"autoprefixer": "^8.0.0",
"cache-loader": "^1.2.2",
"case-sensitive-paths-webpack-plugin": "^2.1.1",
"chalk": "^2.3.0",
"chalk": "^2.3.1",
"cliui": "^4.0.0",
"copy-webpack-plugin": "^4.3.1",
"css-loader": "^0.28.9",
"copy-webpack-plugin": "^4.4.2",
"css-loader": "^0.28.10",
"escape-string-regexp": "^1.0.5",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.6",
"file-loader": "^1.1.10",
"friendly-errors-webpack-plugin": "^1.6.1",
"get-value": "^3.0.0",
"globby": "^7.1.1",
"html-webpack-plugin": "^2.30.1",
"globby": "^8.0.1",
"html-webpack-plugin": "^3.0.0",
"javascript-stringify": "^1.6.0",
"launch-editor-middleware": "^2.2.1",
"minimist": "^1.2.0",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.4.0",
"ora": "^2.0.0",
"portfinder": "^1.0.13",
"postcss-loader": "^2.1.0",
"postcss-loader": "^2.1.1",
"read-pkg": "^3.0.0",
"rimraf": "^2.6.2",
"semver": "^5.5.0",
"slash": "^1.0.0",
"source-map-url": "^0.4.0",
"string.prototype.padend": "^3.0.0",
"thread-loader": "^1.1.2",
"uglifyjs-webpack-plugin": "^1.1.8",
"thread-loader": "^1.1.5",
"uglifyjs-webpack-plugin": "^1.2.2",
"url-loader": "^0.6.2",
"vue-loader": "^14.1.1",
"vue-template-compiler": "^2.5.13",
"webpack": "^3.10.0",
"webpack-chain": "^4.5.0",
"webpack-dev-server": "^2.11.1",
"webpack-merge": "^4.1.1",
"webpack-merge": "^4.1.2",
"yorkie": "^1.0.3"
},
"devDependencies": {
@@ -23,6 +23,6 @@
"dependencies": {
"eslint-config-airbnb-base": "^12.1.0",
"eslint-import-resolver-webpack": "^0.8.4",
"eslint-plugin-import": "^2.8.0"
"eslint-plugin-import": "^2.9.0"
}
}
@@ -23,6 +23,6 @@
"dependencies": {
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"prettier": "^1.10.2"
"prettier": "^1.11.0"
}
}
@@ -21,9 +21,9 @@
},
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/eslint-config-standard#readme",
"dependencies": {
"eslint-config-standard": "^11.0.0-beta.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1"
}
@@ -21,7 +21,7 @@
},
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/eslint-config-typescript#readme",
"dependencies": {
"eslint-plugin-typescript": "^0.8.1",
"typescript-eslint-parser": "^12.0.0"
"eslint-plugin-typescript": "^0.9.0",
"typescript-eslint-parser": "^14.0.0"
}
}
+1340 -1335
View File
File diff suppressed because it is too large Load Diff