Browse Source

adjust build

dev
Evan You 9 years ago
parent
commit
f8daf74640
  1. 3
      .babelrc
  2. 2
      benchmarks/ssr/common.js
  3. 2
      benchmarks/ssr/renderToStream.js
  4. 2
      benchmarks/ssr/renderToString.js
  5. 4
      build/build.js
  6. 5237
      dist/vue.common.js
  7. 3945
      dist/vue.js
  8. 6
      dist/vue.min.js
  9. 4
      package.json
  10. 3799
      packages/vue-server-renderer/index.js
  11. 21
      packages/vue-server-renderer/package.json
  12. 2683
      packages/vue-template-compiler/index.js
  13. 20
      packages/vue-template-compiler/package.json
  14. 2
      test/ssr/ssr-env.spec.js
  15. 4
      test/ssr/ssr-stream.spec.js
  16. 4
      test/ssr/ssr-string.spec.js

3
.babelrc

@ -8,6 +8,7 @@
}
},
"ignore": [
"dist/*.js"
"dist/*.js",
"packages/**/*.js"
]
}

2
benchmarks/ssr/common.js

@ -1,6 +1,6 @@
'use strict'
const compiler = require('../../dist/compiler.js')
const compiler = require('../../packages/vue-template-compiler')
const self = (global || root)
self.performance = {

2
benchmarks/ssr/renderToStream.js

@ -1,7 +1,7 @@
'use strict'
const Vue = require('../../dist/vue.common.js')
const createRenderer = require('../../dist/server-renderer.js')
const createRenderer = require('../../packages/vue-server-renderer')
const renderToStream = createRenderer().renderToStream
const gridComponent = require('./common.js')

2
benchmarks/ssr/renderToString.js

@ -1,7 +1,7 @@
'use strict'
const Vue = require('../../dist/vue.common.js')
const createRenderer = require('../../dist/server-renderer.js')
const createRenderer = require('../../packages/vue-server-renderer')
const renderToString = createRenderer().renderToString
const gridComponent = require('./common.js')

4
build/build.js

@ -66,14 +66,14 @@ var builds = [
entry: 'src/entries/web-compiler.js',
format: 'cjs',
external: ['entities', 'de-indent'],
out: 'dist/compiler.js'
out: 'packages/vue-template-compiler/index.js'
},
// Web server renderer (CommonJS).
{
entry: 'src/entries/web-server-renderer.js',
format: 'cjs',
external: ['stream'],
out: 'dist/server-renderer.js'
out: 'packages/vue-server-renderer/index.js'
}
]

5237
dist/vue.common.js

File diff suppressed because it is too large

3945
dist/vue.js

File diff suppressed because it is too large

6
dist/vue.min.js

File diff suppressed because one or more lines are too long

4
package.json

@ -1,6 +1,6 @@
{
"name": "vue",
"version": "2.0.0-pre-alpha",
"version": "2.0.0-alpha.1",
"description": "Reactive, component-oriented view layer for modern web interfaces.",
"main": "dist/vue.common.js",
"files": [
@ -23,7 +23,7 @@
"test:unit": "NODE_ENV=development karma start build/karma.unit.config.js",
"test:cover": "NODE_ENV=development karma start build/karma.cover.config.js",
"test:e2e": "npm run build -- vue.js && node test/e2e/runner.js",
"build:ssr": "npm run build -- vue.common.js,compiler.js,server-renderer.js",
"build:ssr": "npm run build -- vue.common.js,vue-template-compiler,vue-server-renderer",
"test:ssr": "npm run build:ssr && NODE_ENV=development VUE_ENV=server jasmine JASMINE_CONFIG_PATH=test/ssr/jasmine.json",
"bench:ssr": "npm run build:ssr && NODE_ENV=production VUE_ENV=server node benchmarks/ssr/renderToString.js && NODE_ENV=production VUE_ENV=server node benchmarks/ssr/renderToStream.js"
},

3799
dist/server-renderer.js → packages/vue-server-renderer/index.js

File diff suppressed because it is too large

21
packages/vue-server-renderer/package.json

@ -0,0 +1,21 @@
{
"name": "vue-server-renderer",
"version": "0.1.0",
"description": "server renderer for Vue 2.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
},
"keywords": [
"vue",
"server",
"ssr"
],
"author": "Evan You",
"license": "MIT",
"bugs": {
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue#readme"
}

2683
dist/compiler.common.js → packages/vue-template-compiler/index.js

File diff suppressed because it is too large

20
packages/vue-template-compiler/package.json

@ -0,0 +1,20 @@
{
"name": "vue-template-compiler",
"version": "0.1.0",
"description": "template compiler for Vue 2.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
},
"keywords": [
"vue",
"compiler"
],
"author": "Evan You",
"license": "MIT",
"bugs": {
"url": "https://github.com/vuejs/vue/issues"
},
"homepage": "https://github.com/vuejs/vue#readme"
}

2
test/ssr/ssr-env.spec.js

@ -1,5 +1,5 @@
import Vue from '../../dist/vue.common.js'
import createRenderer from '../../dist/server-renderer.js'
import createRenderer from '../../packages/vue-server-renderer'
import '../helpers/to-have-been-warned.js'
describe('SSR: VUE_ENV=server', () => {

4
test/ssr/ssr-stream.spec.js

@ -1,6 +1,6 @@
import Vue from '../../dist/vue.common.js'
import { compileToFunctions } from '../../dist/compiler.js'
import createRenderer from '../../dist/server-renderer.js'
import { compileToFunctions } from '../../packages/vue-template-compiler'
import createRenderer from '../../packages/vue-server-renderer'
const { renderToStream } = createRenderer()
describe('SSR: renderToStream', () => {

4
test/ssr/ssr-string.spec.js

@ -1,6 +1,6 @@
import Vue from '../../dist/vue.common.js'
import { compileToFunctions } from '../../dist/compiler.js'
import createRenderer from '../../dist/server-renderer.js'
import { compileToFunctions } from '../../packages/vue-template-compiler'
import createRenderer from '../../packages/vue-server-renderer'
const { renderToString } = createRenderer()
describe('SSR: renderToString', () => {

Loading…
Cancel
Save