mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-15 22:05:22 -05:00
chore
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
"debug": "^3.1.0",
|
||||
"eslint": "^4.14.0",
|
||||
"eslint-plugin-vue-libs": "^2.0.1",
|
||||
"globby": "^7.1.1",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^22.0.4",
|
||||
"lerna": "^2.5.1",
|
||||
|
||||
3
packages/@vue/cli-overlay/README.md
Normal file
3
packages/@vue/cli-overlay/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-overlay
|
||||
|
||||
> overlay for vue-cli
|
||||
@@ -25,5 +25,8 @@
|
||||
"dependencies": {
|
||||
"chalk": "^2.3.0",
|
||||
"shell-quote": "^1.6.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-babel/README.md
Normal file
3
packages/@vue/cli-plugin-babel/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-babel
|
||||
|
||||
> babel plugin for vue-cli
|
||||
@@ -21,5 +21,8 @@
|
||||
"dependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-loader": "^7.1.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
|
||||
3
packages/@vue/cli-plugin-e2e-cypress/README.md
Normal file
3
packages/@vue/cli-plugin-e2e-cypress/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-e2e-cypress
|
||||
|
||||
> e2e-cypress plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-e2e-cypress#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-e2e-cypress#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-e2e-nightwatch/README.md
Normal file
3
packages/@vue/cli-plugin-e2e-nightwatch/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-e2e-nightwatch
|
||||
|
||||
> e2e-nightwatch plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-e2e-nightwatch#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-e2e-nightwatch#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-eslint/README.md
Normal file
3
packages/@vue/cli-plugin-eslint/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-eslint
|
||||
|
||||
> eslint plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-eslint#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-eslint#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-pwa/README.md
Normal file
3
packages/@vue/cli-plugin-pwa/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-pwa
|
||||
|
||||
> pwa plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-pwa#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-pwa#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-typescript/README.md
Normal file
3
packages/@vue/cli-plugin-typescript/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-typescript
|
||||
|
||||
> typescript plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-typescript#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-typescript#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-unit-jest/README.md
Normal file
3
packages/@vue/cli-plugin-unit-jest/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-unit-jest
|
||||
|
||||
> unit-jest plugin for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-unit-jest#readme"
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-plugin-unit-jest#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-plugin-unit-mocha-webpack/README.md
Normal file
3
packages/@vue/cli-plugin-unit-mocha-webpack/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-plugin-unit-mocha-webpack
|
||||
|
||||
> unit-mocha-webpack plugin for vue-cli
|
||||
@@ -26,5 +26,8 @@
|
||||
"mocha": "^4.0.1",
|
||||
"mocha-webpack": "^1.0.1",
|
||||
"webpack-node-externals": "^1.6.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-service/README.md
Normal file
3
packages/@vue/cli-service/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-service
|
||||
|
||||
> service for vue-cli
|
||||
@@ -49,5 +49,8 @@
|
||||
"webpack-chain": "^4.5.0",
|
||||
"webpack-dev-server": "^2.9.7",
|
||||
"webpack-merge": "^4.1.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-shared-utils/README.md
Normal file
3
packages/@vue/cli-shared-utils/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-shared-utils
|
||||
|
||||
> shared-utils for vue-cli
|
||||
@@ -21,5 +21,8 @@
|
||||
"dependencies": {
|
||||
"chalk": "^2.3.0",
|
||||
"string.prototype.padstart": "^3.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
packages/@vue/cli-test-utils/README.md
Normal file
3
packages/@vue/cli-test-utils/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# @vue/cli-test-utils
|
||||
|
||||
> test-utils for vue-cli
|
||||
@@ -17,5 +17,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-cli/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-test-utils#readme"
|
||||
}
|
||||
"homepage": "https://github.com/vuejs/vue-cli/packages/@vue/cli-test-utils#readme",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
55
scripts/bootstrap.js
vendored
Normal file
55
scripts/bootstrap.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
// create package.json and README for packages that don't have one yet
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const packagesDir = path.resolve(__dirname, '../packages/@vue')
|
||||
const files = fs.readdirSync(packagesDir)
|
||||
|
||||
files.forEach(pkg => {
|
||||
if (pkg === 'cli') return
|
||||
if (pkg.charAt(0) === '.') return
|
||||
|
||||
const isPlugin = /^cli-plugin-/.test(pkg)
|
||||
const desc = isPlugin
|
||||
? `${pkg.replace('cli-plugin-', '')} plugin for vue-cli`
|
||||
: `${pkg.replace('cli-', '')} for vue-cli`
|
||||
|
||||
const pkgPath = path.join(packagesDir, pkg, `package.json`)
|
||||
if (!fs.existsSync(pkgPath)) {
|
||||
const json = {
|
||||
'name': `@vue/${pkg}`,
|
||||
'version': '1.0.0',
|
||||
'description': desc,
|
||||
'main': 'index.js',
|
||||
'publishConfig': {
|
||||
'access': 'public'
|
||||
},
|
||||
'repository': {
|
||||
'type': 'git',
|
||||
'url': 'git+https://github.com/vuejs/vue-cli.git'
|
||||
},
|
||||
'keywords': [
|
||||
'vue',
|
||||
'cli'
|
||||
],
|
||||
'author': 'Evan You',
|
||||
'license': 'MIT',
|
||||
'bugs': {
|
||||
'url': 'https://github.com/vuejs/vue-cli/issues'
|
||||
},
|
||||
'homepage': `https://github.com/vuejs/vue-cli/packages/@vue/${pkg}#readme`
|
||||
}
|
||||
fs.writeFileSync(pkgPath, JSON.stringify(json, null, 2))
|
||||
}
|
||||
|
||||
const readmePath = path.join(packagesDir, pkg, `README.md`)
|
||||
if (!fs.existsSync(readmePath)) {
|
||||
fs.writeFileSync(readmePath,
|
||||
`# @vue/${pkg}
|
||||
|
||||
> ${desc}
|
||||
`
|
||||
)
|
||||
}
|
||||
})
|
||||
20
scripts/syncDeps.js
Normal file
20
scripts/syncDeps.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// make sure generators are using the latest version of plugins
|
||||
|
||||
const fs = require('fs')
|
||||
const globby = require('globby')
|
||||
|
||||
;(async () => {
|
||||
const paths = await globby(['packages/@vue/cli/lib/generators/**/*.js'])
|
||||
paths
|
||||
.filter(p => !/\/files\//.test(p))
|
||||
.forEach(processFile)
|
||||
})()
|
||||
|
||||
function processFile (filePath) {
|
||||
const file = fs.readFileSync(filePath, 'utf-8')
|
||||
const updated = file.replace(/'(@vue\/cli-[\w-]+)': '\^\d+\.\d+\.\d+'/g, (_, pkg) => {
|
||||
const version = require(`../packages/${pkg}/package.json`).version
|
||||
return `'${pkg}': '^${version}'`
|
||||
})
|
||||
fs.writeFileSync(filePath, updated)
|
||||
}
|
||||
24
yarn.lock
24
yarn.lock
@@ -2064,6 +2064,13 @@ diffie-hellman@^5.0.0:
|
||||
miller-rabin "^4.0.0"
|
||||
randombytes "^2.0.0"
|
||||
|
||||
dir-glob@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034"
|
||||
dependencies:
|
||||
arrify "^1.0.1"
|
||||
path-type "^3.0.0"
|
||||
|
||||
dns-equal@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d"
|
||||
@@ -3016,6 +3023,17 @@ globby@^6.1.0:
|
||||
pify "^2.0.0"
|
||||
pinkie-promise "^2.0.0"
|
||||
|
||||
globby@^7.1.1:
|
||||
version "7.1.1"
|
||||
resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680"
|
||||
dependencies:
|
||||
array-union "^1.0.1"
|
||||
dir-glob "^2.0.0"
|
||||
glob "^7.1.2"
|
||||
ignore "^3.3.5"
|
||||
pify "^3.0.0"
|
||||
slash "^1.0.0"
|
||||
|
||||
got@^6.7.1:
|
||||
version "6.7.1"
|
||||
resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
|
||||
@@ -3331,7 +3349,7 @@ iferr@^0.1.5:
|
||||
version "0.1.5"
|
||||
resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501"
|
||||
|
||||
ignore@^3.3.3:
|
||||
ignore@^3.3.3, ignore@^3.3.5:
|
||||
version "3.3.7"
|
||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
|
||||
|
||||
@@ -6069,7 +6087,7 @@ right-align@^0.1.1:
|
||||
dependencies:
|
||||
align-text "^0.1.1"
|
||||
|
||||
rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1:
|
||||
rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
|
||||
dependencies:
|
||||
@@ -7061,7 +7079,7 @@ vue-template-es2015-compiler@^1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.6.0.tgz#dc42697133302ce3017524356a6c61b7b69b4a18"
|
||||
|
||||
vue-test-utils@^1.0.0-beta.9:
|
||||
vue-test-utils@^1.0.0:
|
||||
version "1.0.0-beta.9"
|
||||
resolved "https://registry.yarnpkg.com/vue-test-utils/-/vue-test-utils-1.0.0-beta.9.tgz#bb67c01e2386f85c3ffbceae460b6e785eb7f81a"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user