remove vue.common.js (just use umd build)

This commit is contained in:
Evan You 2015-12-25 16:00:41 -05:00
parent 8609d4aafb
commit 599e38edb0
3 changed files with 10 additions and 9458 deletions

View File

@ -19,46 +19,27 @@ var main = fs
.replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
fs.writeFileSync('src/index.js', main)
// CommonJS build.
// this is used as the "main" field in package.json
// and used by bundlers like Webpack and Browserify.
// Dev build
rollup.rollup({
entry: 'src/index.js',
plugins: [
replace({
'process.env.NODE_ENV': "'development'"
}),
babel({
loose: 'all'
})
]
})
.then(function (bundle) {
return write('dist/vue.common.js', bundle.generate({
format: 'cjs',
banner: banner
return write('dist/vue.js', bundle.generate({
format: 'umd',
banner: banner,
moduleName: 'Vue'
}).code)
})
// Standalone Dev Build
.then(function () {
return rollup.rollup({
entry: 'src/index.js',
plugins: [
replace({
'process.env.NODE_ENV': "'development'"
}),
babel({
loose: 'all'
})
]
})
.then(function (bundle) {
return write('dist/vue.js', bundle.generate({
format: 'umd',
banner: banner,
moduleName: 'Vue'
}).code)
})
})
.then(function () {
// Standalone Production Build
// Production build
return rollup.rollup({
entry: 'src/index.js',
plugins: [

9428
dist/vue.common.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -9,9 +9,8 @@
"browser",
"framework"
],
"main": "dist/vue.common.js",
"main": "dist/vue.js",
"files": [
"dist/vue.common.js",
"dist/vue.js",
"dist/vue.min.js",
"src"