{
"name": "vue-compat",
"version": "3.0.0-alpha.1",
- "description": "vue",
+ "description": "Vue 2.x compat build",
"main": "index.js",
"module": "dist/vue.esm-bundler.js",
"unpkg": "dist/vue.global.js",
--- /dev/null
+__tests__/
+__mocks__/
+dist/packages
\ No newline at end of file
--- /dev/null
+# vue
\ No newline at end of file
--- /dev/null
+'use strict'
+
+if (process.env.NODE_ENV === 'production') {
+ module.exports = require('./dist/vue.cjs.prod.js')
+} else {
+ module.exports = require('./dist/vue.cjs.js')
+}
--- /dev/null
+{
+ "name": "vue",
+ "version": "3.0.0-alpha.1",
+ "description": "vue",
+ "main": "index.js",
+ "module": "dist/vue.esm-bundler.js",
+ "types": "dist/index.d.ts",
+ "unpkg": "dist/vue.global.js",
+ "buildOptions": {
+ "name": "Vue",
+ "formats": ["esm", "cjs", "global", "esm-browser"]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/vuejs/vue.git"
+ },
+ "keywords": [
+ "vue"
+ ],
+ "author": "Evan You",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/vuejs/vue/issues"
+ },
+ "homepage": "https://github.com/vuejs/vue/tree/dev/packages/vue#readme",
+ "dependencies": {
+ "@vue/renderer-dom": "3.0.0-alpha.1"
+ }
+}
--- /dev/null
+// TODO this package will be the "full-build" that includes both the runtime
+// and the compiler
+export * from '@vue/renderer-dom'
const aliasOptions = { resolve: ['.ts'] }
fs.readdirSync(packagesDir).forEach(dir => {
if (
- dir !== 'vue' &&
+ !dir.startsWith('vue') &&
fs.statSync(path.resolve(packagesDir, dir)).isDirectory()
) {
aliasOptions[`@vue/${dir}`] = path.resolve(packagesDir, `${dir}/src/index`)
const files = fs.readdirSync(packagesDir)
files.forEach(shortName => {
+ if (shortName === 'shared') {
+ return
+ }
if (!fs.statSync(path.join(packagesDir, shortName)).isDirectory()) {
return
}
const args = require('minimist')(process.argv.slice(2))
const target = args._[0]
const formats = args.formats || args.f
+const buildAllMatching = args.all || args.a
;(async () => {
if (!target) {
await buildAll(targets)
checkAllSizes(targets)
} else {
- await buildAll(fuzzyMatchTarget(target))
- checkAllSizes(fuzzyMatchTarget(target))
+ await buildAll(fuzzyMatchTarget(target, buildAllMatching))
+ checkAllSizes(fuzzyMatchTarget(target, buildAllMatching))
}
})()
return true
}))
-exports.fuzzyMatchTarget = partialTarget => {
+exports.fuzzyMatchTarget = (partialTarget, includeAllMatching) => {
const matched = []
for (const target of targets) {
if (target.match(partialTarget)) {
matched.push(target)
+ if (!includeAllMatching) {
+ return matched
+ }
}
}
if (matched.length) {