mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
update build for compiler
This commit is contained in:
parent
03804cefa7
commit
adb81363dd
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@ node_modules
|
||||
npm-debug.log
|
||||
explorations
|
||||
TODOs.md
|
||||
dist/*.gz
|
||||
dist/vue.common.min.js
|
||||
|
@ -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
8
dist/compiler/package.json
vendored
Normal 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"
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user