build: simplify compiler package setup

This commit is contained in:
Evan You 2018-09-19 22:25:55 -04:00
parent 360ab65117
commit 2e9a342652
19 changed files with 17 additions and 81 deletions

View File

@ -1 +0,0 @@
# @vue/compiler-core

View File

@ -1,7 +0,0 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/compiler-core.cjs.prod.js')
} else {
module.exports = require('./dist/compiler-core.cjs.js')
}

View File

@ -1,21 +0,0 @@
{
"name": "@vue/compiler-core",
"version": "3.0.0-alpha.1",
"description": "@vue/compiler-core",
"main": "index.js",
"module": "dist/compiler-core.esm-bundler.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
},
"keywords": [
"vue"
],
"author": "Evan You",
"license": "MIT",
"bugs": {
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-core#readme"
}

View File

@ -1,3 +0,0 @@
__tests__/
__mocks__/
dist/packages

View File

@ -1 +0,0 @@
# @vue/compiler-dom

View File

@ -1,7 +0,0 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/compiler-dom.cjs.prod.js')
} else {
module.exports = require('./dist/compiler-dom.cjs.js')
}

View File

@ -1,3 +0,0 @@
__tests__/
__mocks__/
dist/packages

View File

@ -1 +0,0 @@
# @vue/compiler-server

View File

@ -1,7 +0,0 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/compiler-server.cjs.prod.js')
} else {
module.exports = require('./dist/compiler-server.cjs.js')
}

View File

@ -1,21 +0,0 @@
{
"name": "@vue/compiler-server",
"version": "3.0.0-alpha.1",
"description": "@vue/compiler-server",
"main": "index.js",
"module": "dist/compiler-server.esm-bundler.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
},
"keywords": [
"vue"
],
"author": "Evan You",
"license": "MIT",
"bugs": {
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-server#readme"
}

View File

@ -0,0 +1 @@
# @vue/compiler

View File

@ -0,0 +1,7 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/compiler.cjs.prod.js')
} else {
module.exports = require('./dist/compiler.cjs.js')
}

View File

@ -1,9 +1,9 @@
{
"name": "@vue/compiler-dom",
"name": "@vue/compiler",
"version": "3.0.0-alpha.1",
"description": "@vue/compiler-dom",
"description": "@vue/compiler",
"main": "index.js",
"module": "dist/compiler-dom.esm-bundler.js",
"module": "dist/compiler.esm-bundler.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
@ -17,5 +17,5 @@
"bugs": {
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler-dom#readme"
}
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/compiler#readme"
}

View File

@ -1 +1,3 @@
describe('observer/collections', () => {})
describe('observer/collections', () => {
describe('Map', () => {})
})

View File

@ -24,9 +24,7 @@
"@vue/scheduler": ["packages/scheduler/src"],
"@vue/renderer-dom": ["packages/renderer-dom/src"],
"@vue/renderer-server": ["packages/renderer-server/src"],
"@vue/compiler-core": ["packages/compiler-core/src"],
"@vue/compiler-dom": ["packages/compiler-dom/src"],
"@vue/compiler-server": ["packages/compiler-server/src"]
"@vue/compiler": ["packages/compiler-core/src"]
}
},
"include": [