mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-03 12:38:24 +08:00
rename entries
This commit is contained in:
parent
af12d3ff7f
commit
4461b4c399
@ -1,7 +1,7 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
vue: path.resolve(__dirname, '../src/platforms/web/runtime-with-compiler'),
|
||||
vue: path.resolve(__dirname, '../src/platforms/web/entry-runtime-with-compiler'),
|
||||
compiler: path.resolve(__dirname, '../src/compiler'),
|
||||
core: path.resolve(__dirname, '../src/core'),
|
||||
shared: path.resolve(__dirname, '../src/shared'),
|
||||
|
@ -35,14 +35,14 @@ const resolve = p => {
|
||||
const builds = {
|
||||
// Runtime only (CommonJS). Used by bundlers e.g. Webpack & Browserify
|
||||
'web-runtime-cjs': {
|
||||
entry: resolve('web/runtime.js'),
|
||||
entry: resolve('web/entry-runtime.js'),
|
||||
dest: resolve('dist/vue.runtime.common.js'),
|
||||
format: 'cjs',
|
||||
banner
|
||||
},
|
||||
// Runtime+compiler CommonJS build (CommonJS)
|
||||
'web-full-cjs': {
|
||||
entry: resolve('web/runtime-with-compiler.js'),
|
||||
entry: resolve('web/entry-runtime-with-compiler.js'),
|
||||
dest: resolve('dist/vue.common.js'),
|
||||
format: 'cjs',
|
||||
alias: { he: './entity-decoder' },
|
||||
@ -51,14 +51,14 @@ const builds = {
|
||||
// Runtime only (ES Modules). Used by bundlers that support ES Modules,
|
||||
// e.g. Rollup & Webpack 2
|
||||
'web-runtime-esm': {
|
||||
entry: resolve('web/runtime.js'),
|
||||
entry: resolve('web/entry-runtime.js'),
|
||||
dest: resolve('dist/vue.runtime.esm.js'),
|
||||
format: 'es',
|
||||
banner
|
||||
},
|
||||
// Runtime+compiler CommonJS build (ES Modules)
|
||||
'web-full-esm': {
|
||||
entry: resolve('web/runtime-with-compiler.js'),
|
||||
entry: resolve('web/entry-runtime-with-compiler.js'),
|
||||
dest: resolve('dist/vue.esm.js'),
|
||||
format: 'es',
|
||||
alias: { he: './entity-decoder' },
|
||||
@ -66,7 +66,7 @@ const builds = {
|
||||
},
|
||||
// runtime-only build (Browser)
|
||||
'web-runtime-dev': {
|
||||
entry: resolve('web/runtime.js'),
|
||||
entry: resolve('web/entry-runtime.js'),
|
||||
dest: resolve('dist/vue.runtime.js'),
|
||||
format: 'umd',
|
||||
env: 'development',
|
||||
@ -74,7 +74,7 @@ const builds = {
|
||||
},
|
||||
// runtime-only production build (Browser)
|
||||
'web-runtime-prod': {
|
||||
entry: resolve('web/runtime.js'),
|
||||
entry: resolve('web/entry-runtime.js'),
|
||||
dest: resolve('dist/vue.runtime.min.js'),
|
||||
format: 'umd',
|
||||
env: 'production',
|
||||
@ -82,7 +82,7 @@ const builds = {
|
||||
},
|
||||
// Runtime+compiler development build (Browser)
|
||||
'web-full-dev': {
|
||||
entry: resolve('web/runtime-with-compiler.js'),
|
||||
entry: resolve('web/entry-runtime-with-compiler.js'),
|
||||
dest: resolve('dist/vue.js'),
|
||||
format: 'umd',
|
||||
env: 'development',
|
||||
@ -91,7 +91,7 @@ const builds = {
|
||||
},
|
||||
// Runtime+compiler production build (Browser)
|
||||
'web-full-prod': {
|
||||
entry: resolve('web/runtime-with-compiler.js'),
|
||||
entry: resolve('web/entry-runtime-with-compiler.js'),
|
||||
dest: resolve('dist/vue.min.js'),
|
||||
format: 'umd',
|
||||
env: 'production',
|
||||
@ -100,14 +100,14 @@ const builds = {
|
||||
},
|
||||
// Web compiler (CommonJS).
|
||||
'web-compiler': {
|
||||
entry: resolve('web/compiler.js'),
|
||||
entry: resolve('web/entry-compiler.js'),
|
||||
dest: resolve('packages/vue-template-compiler/build.js'),
|
||||
format: 'cjs',
|
||||
external: Object.keys(require('../packages/vue-template-compiler/package.json').dependencies)
|
||||
},
|
||||
// Web server renderer (CommonJS).
|
||||
'web-server-renderer': {
|
||||
entry: resolve('web/server-renderer.js'),
|
||||
entry: resolve('web/entry-server-renderer.js'),
|
||||
dest: resolve('packages/vue-server-renderer/build.js'),
|
||||
format: 'cjs',
|
||||
external: Object.keys(require('../packages/vue-server-renderer/package.json').dependencies)
|
||||
@ -127,7 +127,7 @@ const builds = {
|
||||
// Weex runtime factory
|
||||
'weex-factory': {
|
||||
weex: true,
|
||||
entry: resolve('weex/runtime-factory.js'),
|
||||
entry: resolve('weex/entry-runtime-factory.js'),
|
||||
dest: resolve('packages/weex-vue-framework/factory.js'),
|
||||
format: 'cjs',
|
||||
plugins: [weexFactoryPlugin]
|
||||
@ -135,14 +135,14 @@ const builds = {
|
||||
// Weex runtime framework (CommonJS).
|
||||
'weex-framework': {
|
||||
weex: true,
|
||||
entry: resolve('weex/framework.js'),
|
||||
entry: resolve('weex/entry-framework.js'),
|
||||
dest: resolve('packages/weex-vue-framework/index.js'),
|
||||
format: 'cjs'
|
||||
},
|
||||
// Weex compiler (CommonJS). Used by Weex's Webpack loader.
|
||||
'weex-compiler': {
|
||||
weex: true,
|
||||
entry: resolve('weex/compiler.js'),
|
||||
entry: resolve('weex/entry-compiler.js'),
|
||||
dest: resolve('packages/weex-template-compiler/build.js'),
|
||||
format: 'cjs',
|
||||
external: Object.keys(require('../packages/weex-template-compiler/package.json').dependencies)
|
||||
|
Loading…
Reference in New Issue
Block a user