build: simplify compiler package setup
This commit is contained in:
3
packages/compiler/.npmignore
Normal file
3
packages/compiler/.npmignore
Normal file
@@ -0,0 +1,3 @@
|
||||
__tests__/
|
||||
__mocks__/
|
||||
dist/packages
|
||||
1
packages/compiler/README.md
Normal file
1
packages/compiler/README.md
Normal file
@@ -0,0 +1 @@
|
||||
# @vue/compiler
|
||||
7
packages/compiler/index.js
Normal file
7
packages/compiler/index.js
Normal 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')
|
||||
}
|
||||
21
packages/compiler/package.json
Normal file
21
packages/compiler/package.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@vue/compiler",
|
||||
"version": "3.0.0-alpha.1",
|
||||
"description": "@vue/compiler",
|
||||
"main": "index.js",
|
||||
"module": "dist/compiler.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#readme"
|
||||
}
|
||||
0
packages/compiler/src/index.ts
Normal file
0
packages/compiler/src/index.ts
Normal file
Reference in New Issue
Block a user