Skip to content

Commit

Permalink
update build for compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 13, 2016
1 parent 03804ce commit adb8136
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules
npm-debug.log
explorations
TODOs.md
dist/*.gz
dist/vue.common.min.js
13 changes: 13 additions & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
8 changes: 8 additions & 0 deletions dist/compiler/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit adb8136

Please sign in to comment.