Skip to content

Commit

Permalink
[update] update some package and modify relate config
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jan 2, 2018
1 parent 12f04e4 commit f4c5e09
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ all=warn
untyped-type-import=error
sketchy-null-bool=off
[options]
unsafe.enable_getters_and_setters=true
module.name_mapper='^helper/\(.*\)$' -> '<PROJECT_ROOT>/src/helper/\1'
module.name_mapper='^dispatcher/\(.*\)$' -> '<PROJECT_ROOT>/src/dispatcher/\1'
module.name_mapper='^global/\(.*\)$' -> '<PROJECT_ROOT>/src/global/\1'
Expand Down
3 changes: 1 addition & 2 deletions build/rollup.config.base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { version, name, author, license, dependencies } = require('../package.json');
const banner = `
export const banner = `
/**
* ${name} v${version}
* (c) 2017 ${author}
Expand Down Expand Up @@ -121,7 +121,6 @@ const externalRegExp = new RegExp(Object.keys(dependencies).join('|'));
export default function(mode) {
return {
input: 'src/index.js',
banner,
external(id) {
return !/min|umd|iife/.test(mode) && externalRegExp.test(id);
},
Expand Down
3 changes: 2 additions & 1 deletion build/rollup.config.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import base from './rollup.config.base';
import base, { banner } from './rollup.config.base';
export default Object.assign(base('common'), {
output: {
format: 'cjs',
file: 'lib/index.js',
banner,
},
});
5 changes: 3 additions & 2 deletions build/rollup.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import base from './rollup.config.base';
import base, { banner } from './rollup.config.base';
import serve from 'rollup-plugin-serve';
import livereload from 'rollup-plugin-livereload';
import replace from 'rollup-plugin-replace';
Expand All @@ -16,6 +16,7 @@ export default Object.assign(config, {
output: {
format: 'umd',
file: 'lib/index.dev.js',
name: camelize(name, true),
banner,
},
name: camelize(name, true),
});
3 changes: 2 additions & 1 deletion build/rollup.config.es.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import base from './rollup.config.base';
import base, { banner } from './rollup.config.base';
export default Object.assign(base('es'), {
output: {
format: 'es',
file: 'lib/index.mjs',
banner,
},
});
5 changes: 3 additions & 2 deletions build/rollup.config.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import base from './rollup.config.base';
import base, { banner } from './rollup.config.base';
import uglify from 'rollup-plugin-uglify';
import replace from 'rollup-plugin-replace';
const { name } = require('../package.json');
Expand All @@ -12,6 +12,7 @@ export default Object.assign(config, {
output: {
format: 'umd',
file: 'lib/index.min.js',
banner,
name: camelize(name, true),
},
name: camelize(name, true),
});
5 changes: 3 additions & 2 deletions build/rollup.config.umd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import base from './rollup.config.base';
import base, { banner } from './rollup.config.base';
const { name } = require('../package.json');
import { camelize } from 'toxic-utils';
import replace from 'rollup-plugin-replace';
Expand All @@ -10,6 +10,7 @@ export default Object.assign(config, {
output: {
format: 'umd',
file: 'lib/index.browser.js',
banner,
name: camelize(name, true),
},
name: camelize(name, true),
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
"chimee-plugin-controlbar": "^0.4.0",
"chimee-plugin-danmu": "0.0.9",
"eslint": "^4.13.0",
"eslint-config-egg": "^5.1.1",
"eslint-config-egg": "^6.0.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-jest": "^21.5.0",
"flow-bin": "^0.61.0",
"flow-bin": "^0.62.0",
"husky": "^0.14.3",
"jest": "^21.2.1",
"npm-check-updates": "^2.13.0",
"pkg-ok": "^1.1.0",
"rollup": "^0.52.2",
"rollup": "^0.53.2",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-flow-no-whitespace": "^1.0.0",
Expand Down

0 comments on commit f4c5e09

Please sign in to comment.