update build for compiler

This commit is contained in:
Evan You 2016-04-13 06:45:34 -04:00
parent 03804cefa7
commit adb81363dd
4 changed files with 30 additions and 1 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ node_modules
npm-debug.log
explorations
TODOs.md
dist/*.gz
dist/vue.common.min.js

View File

@ -46,6 +46,19 @@ rollup.rollup({
])
})
.then(zip('dist/vue.common.min.js'))
// Compiler CommonJS build.
// Used in Node loaders/transforms.
.then(function () {
return rollup.rollup({
entry: 'src/compiler/index.js',
plugins: [babel()]
})
.then(function (bundle) {
write('dist/compiler/compiler.js', bundle.generate({
format: 'cjs'
}).code)
})
})
// Standalone Dev Build
.then(function () {
return rollup.rollup({

8
dist/compiler/package.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"name": "vue-template-compiler",
"version": "1.0.0",
"description": "Compile Vue templates into virtual dom render functions",
"main": "compiler.js",
"author": "Evan You",
"license": "MIT"
}

View File

@ -2,7 +2,13 @@
"name": "vue-lite",
"version": "2.0.0",
"description": "Lighter-weight Vue on virtual dom",
"main": "index.js",
"main": "dist/vue.common.js",
"files": [
"dist/vue.common.js",
"dist/vue.js",
"dist/vue.min.js",
"src"
],
"scripts": {
"dev": "webpack --watch",
"test": "mocha",