Skip to content

Commit

Permalink
Update to latest VueJS and a fix for issue lyonlai#7.
Browse files Browse the repository at this point in the history
1. Update to latest VueJS.
2. Update to latest rollup.
3. Update to latest blessed-vue.
4. Fix issue with missing weex dependency.
5. Removed bundleSize because it was causing build errors.
6. Update version to 2.0.0 so that Vuex will load correctly.

All tests pass.
  • Loading branch information
geiseri authored and Ian Reinhart Geiser committed Jan 23, 2018
1 parent e655b1d commit a32a1fc
Show file tree
Hide file tree
Showing 4 changed files with 952 additions and 521 deletions.
1 change: 1 addition & 0 deletions build/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
core: path.resolve(__dirname, vuePath, 'src/core'),
shared: path.resolve(__dirname, vuePath, 'src/shared'),
web: path.resolve(__dirname, vuePath, 'src/platforms/web'),
weex: path.resolve(__dirname, vuePath, 'src/platforms/weex'),
sfc: path.resolve(__dirname, vuePath, 'src/sfc'),
runtime: path.resolve(__dirname, '../src/runtime'),
util: path.resolve(__dirname, '../src/util')
Expand Down
14 changes: 8 additions & 6 deletions build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ import buble from 'rollup-plugin-buble'
import flow from 'rollup-plugin-flow-no-whitespace'
import alias from 'rollup-plugin-alias'
import replace from 'rollup-plugin-replace'
import bundleSize from 'rollup-plugin-bundle-size'

const version = process.env.VERSION || require('../package.json').version

export default {
entry: path.resolve(__dirname, '../src/index.js'),
dest: path.resolve(__dirname, '../dist/build.js'),
format: 'cjs',
input: path.resolve(__dirname, '../src/index.js'),
output: {
name: 'BlessedVue',
file: path.resolve(__dirname, '../dist/build.js'),
format: 'cjs'
},
plugins: [
replace({
__WEEX__: false,
__VERSION__: version
}),
flow(),
buble(),
alias(Object.assign({ he: './entity-decoder' }, require('./alias'))),
bundleSize()
alias(Object.assign({ he: './entity-decoder' }, require('./alias')))
],
external: [
'blessed',
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blessed-vue",
"version": "1.2.0",
"version": "2.0.0",
"description": "A VueJS runtime to render Blessed to build command line UI.",
"main": "dist/build.js",
"repository": "https://github.com/lyonlai/blessed-vue.git",
Expand Down Expand Up @@ -31,34 +31,35 @@
"test-debug": "npm build && node --inspect --debug-brk ./node_modules/.bin/jasmine JASMINE_CONFIG_PATH=test/jasmine.json"
},
"devDependencies": {
"babel-eslint": "^7.2.1",
"babel-eslint": "^8.2.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.4.2",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-flow-vue": "^1.0.0",
"babel-register": "^6.24.1",
"buble": "^0.15.2",
"cross-env": "^4.0.0",
"eslint": "^3.19.0",
"buble": "^0.18.0",
"cross-env": "^5.1.3",
"eslint": "^4.16.0",
"eslint-config-vue": "^2.0.2",
"eslint-plugin-flowtype": "^2.30.4",
"eslint-plugin-jasmine": "^2.2.0",
"eslint-plugin-vue": "^2.0.1",
"eslint-plugin-vue": "^4.2.0",
"flow": "^0.2.3",
"jasmine": "^2.5.3",
"rollup": "^0.41.6",
"rollup": "^0.55.0",
"rollup-plugin-alias": "^1.2.1",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-bundle-size": "^1.0.1",
"rollup-plugin-buble": "^0.18.0",
"rollup-plugin-flow-no-whitespace": "^1.0.0",
"rollup-plugin-replace": "^1.1.1",
"rollup-watch": "^3.2.2",
"vue": "^2.3.0"
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-replace": "^2.0.0",
"rollup-watch": "^4.3.1",
"vue": "^2.5.13"
},
"dependencies": {
"blessed": "^0.1.81",
"blessed-contrib": "^4.7.5",
"blessed-contrib": "^4.8.5",
"lodash": "^4.17.4"
}
}
Loading

0 comments on commit a32a1fc

Please sign in to comment.