-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:bornkiller/echarts-bridge
- Loading branch information
Showing
10 changed files
with
3,485 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
{ | ||
"presets": ["es2015-bk"] | ||
} | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false, | ||
"loose": true | ||
} | ||
], | ||
"stage-3" | ||
], | ||
"env": { | ||
"dev": { | ||
"plugins": [ | ||
"transform-class-properties" | ||
] | ||
}, | ||
"prod": { | ||
"plugins": [ | ||
"transform-runtime", | ||
"transform-class-properties" | ||
] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
[ | ||
"istanbul", | ||
{ | ||
"exclude": [ | ||
"**/*.spec.js", | ||
"node_modules/**/*.js" | ||
] | ||
} | ||
], | ||
"transform-class-properties" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# For more information about the properties used in | ||
# this file, please see the EditorConfig documentation: | ||
# http://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{.travis.yml,.gitlab-ci.yml,package.json}] | ||
# The indent size used in the `package.json` file cannot be changed | ||
# https://github.com/npm/npm/pull/3180#issuecomment-16336516 | ||
indent_size = 2 | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "6.0" | ||
- 8 | ||
branches: | ||
only: | ||
- master | ||
- /^Release.*$/ | ||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
install: | ||
- npm install; | ||
- npm install echarts; | ||
script: | ||
- npm run test-travis; | ||
after_success: | ||
- npm install coveralls@2.10.0 && cat ./coverage/lcov/lcov.info | coveralls | ||
- npm install coveralls@2.10.0 && cat ./coverage/lcov/lcov.info | coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
/** | ||
* @description - observable package rollup configuration | ||
* @description - rollup configuration | ||
* @author - bornkiller <hjj491229492@hotmail.com> | ||
*/ | ||
import eslint from 'rollup-plugin-eslint'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import babel from 'rollup-plugin-babel'; | ||
|
||
export default { | ||
const babel = require('rollup-plugin-babel'); | ||
const eslint = require('rollup-plugin-eslint'); | ||
const resolve = require('rollup-plugin-node-resolve'); | ||
|
||
module.exports = { | ||
entry: 'index.js', | ||
plugins: [ | ||
eslint({ | ||
include: ['index.js', 'src/*.js', 'test/*.js'] | ||
}), | ||
resolve({ jsnext: true, main: true }), | ||
commonjs({ | ||
include: 'node_modules/@bornkiller/**', | ||
include: ['index.js', 'src/*.js'] | ||
}), | ||
babel() | ||
resolve(), | ||
babel({ | ||
exclude: ['**/*.css', '**/*.scss'], | ||
runtimeHelpers: true | ||
}) | ||
], | ||
moduleId: 'bk.echarts', | ||
moduleName: 'bk.echarts', | ||
external: ['echarts'], | ||
globals: { | ||
'echarts': 'echarts' | ||
external: (id) => { | ||
return ['echarts', 'babel-runtime'].some((name) => id.startsWith(name)); | ||
}, | ||
targets: [ | ||
{ format: 'umd', dest: 'dist/bridge.bundle.js' }, | ||
{ format: 'es', dest: 'dist/bridge.bundle.esm.js' } | ||
{ dest: 'dist/bridge.common.js', format: 'cjs' } | ||
] | ||
}; | ||
}; |
Oops, something went wrong.