chore: update main deps (#1772)

* chore: update main deps

* chore: update ts types

* chore: update generator deps versions

* fix: ts-jest

* chore: upgrade ts-jest again

* fix: re-generated yarn.lock

* chore: more upgrades

* fix: jest test matching on Windows
This commit is contained in:
Guillaume Chau
2018-07-08 13:56:10 +02:00
committed by GitHub
parent 31e1b4995e
commit 96778b2caf
24 changed files with 1462 additions and 1141 deletions

View File

@@ -59,7 +59,7 @@
"inquirer": "^6.0.0",
"jest": "^23.1.0",
"lerna": "^2.8.0",
"lint-staged": "^6.0.1",
"lint-staged": "^7.2.0",
"memfs": "^2.8.0",
"puppeteer": "^1.0.0",
"request": "^2.83.0",

View File

@@ -23,7 +23,7 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"cypress": "^3.0.0",
"cypress": "^3.0.2",
"eslint-plugin-cypress": "^2.0.1"
}
}

View File

@@ -23,10 +23,10 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"chromedriver": "^2.38.3",
"deepmerge": "^2.1.0",
"chromedriver": "^2.40.0",
"deepmerge": "^2.1.1",
"execa": "^0.10.0",
"nightwatch": "^0.9.21",
"selenium-server": "^3.12.0"
"selenium-server": "^3.13.0"
}
}

View File

@@ -49,7 +49,7 @@ module.exports = (api, { config, lintOn = [] }) => {
if (lintOn.includes('commit')) {
Object.assign(pkg.devDependencies, {
'lint-staged': '^6.0.0'
'lint-staged': '^7.2.0'
})
pkg.gitHooks = {
'pre-commit': 'lint-staged'

View File

@@ -23,7 +23,7 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"babel-eslint": "^8.2.3",
"babel-eslint": "^8.2.5",
"eslint": "^4.19.1",
"eslint-loader": "^2.0.0",
"eslint-plugin-vue": "^4.5.0",

View File

@@ -23,7 +23,7 @@
},
"dependencies": {
"launch-editor": "^2.2.1",
"workbox-webpack-plugin": "^3.2.0"
"workbox-webpack-plugin": "^3.3.1"
},
"devDependencies": {
"register-service-worker": "^1.0.0"

View File

@@ -11,7 +11,7 @@ module.exports = (api, {
api.extendPackage({
dependencies: {
'vue-class-component': '^6.0.0',
'vue-property-decorator': '^6.0.0'
'vue-property-decorator': '^7.0.0'
}
})
}
@@ -58,7 +58,7 @@ module.exports = (api, {
if (hasMocha) {
api.extendPackage({
devDependencies: {
'@types/mocha': '^2.2.46',
'@types/mocha': '^5.2.4',
'@types/chai': '^4.1.0'
}
})
@@ -68,7 +68,7 @@ module.exports = (api, {
if (hasJest) {
api.extendPackage({
devDependencies: {
'@types/jest': '^22.0.1'
'@types/jest': '^23.1.4'
}
})
}

View File

@@ -22,19 +22,19 @@
"access": "public"
},
"dependencies": {
"@types/node": "^9.3.0",
"@types/node": "^10.5.2",
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"fork-ts-checker-webpack-plugin": "^0.4.1",
"fork-ts-checker-webpack-plugin": "^0.4.2",
"globby": "^8.0.1",
"ts-loader": "^4.3.1",
"ts-loader": "^4.4.2",
"tslint": "^5.10.0",
"typescript": "~2.9.0"
},
"devDependencies": {
"@types/chai": "^4.1.0",
"@types/jest": "^22.0.1",
"@types/mocha": "^2.2.46",
"vue-class-component": "^6.0.0",
"vue-property-decorator": "^6.0.0"
"@types/jest": "^23.1.4",
"@types/mocha": "^5.2.4",
"vue-class-component": "^6.2.0",
"vue-property-decorator": "^7.0.0"
}
}

View File

@@ -5,7 +5,7 @@ module.exports = api => {
'test:unit': 'vue-cli-service test:unit'
},
devDependencies: {
'@vue/test-utils': '^1.0.0-beta.16'
'@vue/test-utils': '^1.0.0-beta.20'
}
})
@@ -31,7 +31,7 @@ module.exports = api => {
'jest-serializer-vue'
],
'testMatch': [
'<rootDir>/(tests/unit/*.spec.(js|jsx|ts|tsx)|**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))'
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
]
}
@@ -57,7 +57,7 @@ module.exports = api => {
jestConfig.transform['^.+\\.tsx?$'] = 'ts-jest'
api.extendPackage({
devDependencies: {
'ts-jest': '^22.4.6'
'ts-jest': '^23.0.0'
}
})
if (api.hasPlugin('babel')) {

View File

@@ -23,15 +23,15 @@
},
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"babel-jest": "^23.0.1",
"babel-jest": "^23.2.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"jest": "^23.1.0",
"jest-serializer-vue": "^1.0.0",
"jest": "^23.3.0",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^1.0.0",
"vue-jest": "^2.6.0"
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.16",
"ts-jest": "^22.4.6"
"@vue/test-utils": "^1.0.0-beta.20",
"ts-jest": "^23.0.0"
}
}

View File

@@ -2,7 +2,7 @@ module.exports = api => {
api.render('./template')
const devDependencies = {
'@vue/test-utils': '^1.0.0-beta.16',
'@vue/test-utils': '^1.0.0-beta.20',
'chai': '^4.1.2'
}

View File

@@ -22,13 +22,13 @@
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-unit-mocha#readme",
"dependencies": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"jsdom": "^11.10.0",
"jsdom": "^11.11.0",
"jsdom-global": "^3.0.2",
"mocha": "^5.1.1",
"mocha": "^5.2.0",
"mocha-webpack": "^2.0.0-beta.0"
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.16",
"@vue/test-utils": "^1.0.0-beta.20",
"chai": "^4.1.2"
},
"publishConfig": {

View File

@@ -27,7 +27,7 @@
"@vue/cli-service": "^3.0.0-rc.3",
"chalk": "^2.4.1",
"eslint-plugin-vue": "^4.5.0",
"resolve": "^1.7.1",
"resolve": "^1.8.1",
"vue": "^2.5.16"
}
}

View File

@@ -56,7 +56,6 @@ test('default loaders', () => {
expect(findLoaders(config, lang)).toEqual(['vue-style', 'css', 'postcss'].concat(loader))
// assert css-loader options
expect(findOptions(config, lang, 'css')).toEqual({
minimize: false,
sourceMap: false,
importLoaders: lang === 'css' ? 2 : 3
})
@@ -71,7 +70,6 @@ test('production defaults', () => {
const loader = lang === 'css' ? [] : LOADERS[lang]
expect(findLoaders(config, lang)).toEqual([extractLoaderPath, 'css', 'postcss'].concat(loader))
expect(findOptions(config, lang, 'css')).toEqual({
minimize: true,
sourceMap: false,
importLoaders: lang === 'css' ? 2 : 3
})
@@ -90,7 +88,6 @@ test('CSS Modules rules', () => {
const expected = {
importLoaders: lang === 'css' ? 1 : 2, // no postcss-loader
localIdentName: `[name]_[local]_[hash:base64:5]`,
minimize: false,
sourceMap: false,
modules: true
}

View File

@@ -40,7 +40,7 @@ module.exports = class Service {
if (inlinePkg) {
return inlinePkg
} else if (fs.existsSync(path.join(this.context, 'package.json'))) {
return readPkg.sync(this.context)
return readPkg.sync({ cwd: this.context })
} else {
return {}
}

View File

@@ -79,7 +79,6 @@ module.exports = (api, options) => {
}
const cssLoaderOptions = Object.assign({
minimize: isProd,
sourceMap,
importLoaders: (
1 + // stylePostLoader injected by vue-loader
@@ -149,9 +148,9 @@ module.exports = (api, options) => {
}
webpackConfig
.plugin('optimize-css')
.use(require('optimize-css-assets-webpack-plugin'), [{
canPrint: false,
cssProcessorOptions
.use(require('@intervolga/optimize-cssnano-plugin'), [{
sourceMap: options.productionSourceMap && sourceMap,
cssnanoOptions: cssProcessorOptions
}])
}
})

View File

@@ -21,20 +21,21 @@
},
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-service#readme",
"dependencies": {
"@intervolga/optimize-cssnano-plugin": "^1.0.5",
"@vue/cli-overlay": "^3.0.0-rc.3",
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"@vue/preload-webpack-plugin": "^1.0.0",
"@vue/web-component-wrapper": "^1.2.0",
"acorn": "^5.5.3",
"acorn": "^5.7.1",
"address": "^1.0.3",
"autoprefixer": "^8.4.1",
"autoprefixer": "^8.6.5",
"cache-loader": "^1.2.2",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "^2.4.1",
"clipboardy": "^1.2.3",
"cliui": "^4.1.0",
"copy-webpack-plugin": "^4.5.1",
"css-loader": "^0.28.11",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"debug": "^3.1.0",
"escape-string-regexp": "^1.0.5",
"file-loader": "^1.1.11",
@@ -48,27 +49,26 @@
"lodash.defaultsdeep": "^4.6.0",
"lodash.mapvalues": "^4.6.0",
"lodash.transform": "^4.6.0",
"mini-css-extract-plugin": "^0.4.0",
"mini-css-extract-plugin": "^0.4.1",
"minimist": "^1.2.0",
"optimize-css-assets-webpack-plugin": "^4.0.1",
"ora": "^2.1.0",
"portfinder": "^1.0.13",
"postcss-loader": "^2.1.5",
"read-pkg": "^3.0.0",
"read-pkg": "^4.0.1",
"semver": "^5.5.0",
"slash": "^2.0.0",
"source-map-url": "^0.4.0",
"string.prototype.padend": "^3.0.0",
"thread-loader": "^1.1.5",
"uglifyjs-webpack-plugin": "^1.2.5",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"vue-loader": "^15.2.0",
"vue-loader": "^15.2.4",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.8.2",
"webpack": "^4.15.1",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-chain": "^4.8.0",
"webpack-dev-server": "^3.1.4",
"webpack-merge": "^4.1.2",
"webpack-merge": "^4.1.3",
"yorkie": "^1.0.3"
},
"devDependencies": {

View File

@@ -19,13 +19,13 @@
},
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-shared-utils#readme",
"dependencies": {
"chalk": "^2.3.0",
"chalk": "^2.4.1",
"execa": "^0.10.0",
"joi": "^12.0.0",
"joi": "^13.0.0",
"node-ipc": "^9.1.1",
"opn": "^5.2.0",
"ora": "^1.3.0",
"request": "^2.83.0",
"opn": "^5.3.0",
"ora": "^2.1.0",
"request": "^2.87.0",
"request-promise-native": "^1.0.5",
"string.prototype.padstart": "^3.0.0"
},

View File

@@ -17,7 +17,7 @@
"@vue/cli-service": "^3.0.0-rc.3",
"@vue/eslint-config-standard": "^3.0.0-rc.3",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"stylus-loader": "^3.0.2",
"vue-progress-path": "^0.0.2",
"vue-template-compiler": "^2.5.16",
"vuex": "^3.0.1"

View File

@@ -2,6 +2,7 @@ const path = require('path')
const fs = require('fs-extra')
const LRU = require('lru-cache')
const winattr = require('@akryum/winattr')
const readPkg = require('read-pkg')
const hiddenPrefix = '.'
const isPlatformWindows = process.platform.indexOf('win') === 0
@@ -100,9 +101,11 @@ function readPackage (file, context, force = false) {
return cachedValue
}
}
const pkg = fs.readJsonSync(path.join(file, 'package.json'))
pkgCache.set(file, pkg)
return pkg
if (fs.existsSync(path.join(file, 'package.json'))) {
const pkg = readPkg.sync({ cwd: file })
pkgCache.set(file, pkg)
return pkg
}
}
function writePackage ({ file, data }, context) {

View File

@@ -31,20 +31,20 @@
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"chalk": "^2.4.1",
"clone": "^2.1.1",
"deepmerge": "^2.1.0",
"deepmerge": "^2.1.1",
"execa": "^0.10.0",
"express-history-api-fallback": "^2.2.1",
"fs-extra": "^6.0.0",
"fs-extra": "^6.0.1",
"globby": "^8.0.1",
"graphql": "^0.13.0",
"graphql": "^0.13.2",
"graphql-tag": "^2.9.2",
"graphql-type-json": "^0.2.0",
"graphql-type-json": "^0.2.1",
"javascript-stringify": "^1.6.0",
"js-yaml": "^3.11.0",
"js-yaml": "^3.12.0",
"launch-editor": "^2.2.1",
"lodash.merge": "^4.6.1",
"lowdb": "^1.0.0",
"lru-cache": "^4.1.2",
"lru-cache": "^4.1.3",
"node-ipc": "^9.1.1",
"node-notifier": "^5.2.1",
"parse-git-config": "^2.0.2",
@@ -52,7 +52,7 @@
"semver": "^5.5.0",
"shortid": "^2.2.8",
"terminate": "^2.1.0",
"vue-cli-plugin-apollo": "^0.14.5",
"vue-cli-plugin-apollo": "^0.14.6",
"watch": "^1.0.2"
},
"devDependencies": {
@@ -62,13 +62,14 @@
"@vue/cli-service": "^3.0.0-rc.3",
"@vue/eslint-config-standard": "^3.0.0-rc.3",
"@vue/ui": "^0.4.6",
"ansi_up": "^2.0.2",
"ansi_up": "^3.0.0",
"cross-env": "^5.1.5",
"eslint": "^4.16.0",
"eslint-plugin-graphql": "^2.1.1",
"lint-staged": "^6.0.0",
"lint-staged": "^7.2.0",
"lodash.debounce": "^4.0.8",
"portal-vue": "^1.3.0",
"read-pkg": "^4.0.1",
"rimraf": "^2.6.2",
"start-server-and-test": "^1.4.1",
"stylus": "^0.54.5",
@@ -76,7 +77,7 @@
"vue": "^2.5.16",
"vue-apollo": "^3.0.0-beta.17",
"vue-color": "^2.4.6",
"vue-i18n": "^7.6.0",
"vue-i18n": "^8.0.0",
"vue-instantsearch": "^1.5.1",
"vue-meta": "^1.5.0",
"vue-observe-visibility": "^0.4.1",

View File

@@ -30,31 +30,31 @@
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"@vue/cli-ui": "^3.0.0-rc.3",
"@vue/cli-ui-addon-webpack": "^3.0.0-rc.3",
"chalk": "^2.3.0",
"chalk": "^2.4.1",
"cmd-shim": "^2.0.2",
"commander": "^2.12.2",
"commander": "^2.16.0",
"debug": "^3.1.0",
"deepmerge": "^2.0.1",
"deepmerge": "^2.1.1",
"download-git-repo": "^1.0.2",
"ejs": "^2.5.7",
"ejs": "^2.6.1",
"execa": "^0.10.0",
"fs-extra": "^6.0.0",
"fs-extra": "^6.0.1",
"globby": "^8.0.1",
"import-global": "^0.1.0",
"inquirer": "^6.0.0",
"isbinaryfile": "^3.0.2",
"javascript-stringify": "^1.6.0",
"js-yaml": "^3.10.0",
"klaw-sync": "^3.0.2",
"js-yaml": "^3.12.0",
"klaw-sync": "^4.0.0",
"lodash.clonedeep": "^4.5.0",
"minimist": "^1.2.0",
"recast": "^0.13.0",
"request": "^2.83.0",
"recast": "^0.15.2",
"request": "^2.87.0",
"request-promise-native": "^1.0.5",
"resolve": "^1.5.0",
"semver": "^5.4.1",
"resolve": "^1.8.1",
"semver": "^5.5.0",
"shortid": "^2.2.8",
"slash": "^1.0.0",
"slash": "^2.0.0",
"validate-npm-package-name": "^3.0.0",
"yaml-front-matter": "^3.4.1"
},

View File

@@ -22,7 +22,7 @@
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/eslint-config-prettier#readme",
"dependencies": {
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-prettier": "^2.6.2",
"prettier": "^1.12.1"
}
}

2439
yarn.lock

File diff suppressed because it is too large Load Diff