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,26 +19,8 @@ var main = fs
.replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'") .replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
fs.writeFileSync('src/index.js', main) fs.writeFileSync('src/index.js', main)
// CommonJS build. // Dev build
// this is used as the "main" field in package.json
// and used by bundlers like Webpack and Browserify.
rollup.rollup({ rollup.rollup({
entry: 'src/index.js',
plugins: [
babel({
loose: 'all'
})
]
})
.then(function (bundle) {
return write('dist/vue.common.js', bundle.generate({
format: 'cjs',
banner: banner
}).code)
})
// Standalone Dev Build
.then(function () {
return rollup.rollup({
entry: 'src/index.js', entry: 'src/index.js',
plugins: [ plugins: [
replace({ replace({
@ -56,9 +38,8 @@ rollup.rollup({
moduleName: 'Vue' moduleName: 'Vue'
}).code) }).code)
}) })
})
.then(function () { .then(function () {
// Standalone Production Build // Production build
return rollup.rollup({ return rollup.rollup({
entry: 'src/index.js', entry: 'src/index.js',
plugins: [ plugins: [

9428
dist/vue.common.js vendored

File diff suppressed because it is too large Load Diff

View File

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