mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
prepare builds for react-bootstrap-table2-toolkit
This commit is contained in:
parent
18b785d655
commit
46f0ce493b
@ -17,7 +17,8 @@ const JS_PKGS = [
|
||||
'react-bootstrap-table2-editor',
|
||||
'react-bootstrap-table2-filter',
|
||||
'react-bootstrap-table2-overlay',
|
||||
'react-bootstrap-table2-paginator'
|
||||
'react-bootstrap-table2-paginator',
|
||||
'react-bootstrap-table2-toolkit'
|
||||
].reduce((pkg, curr) => `${curr}|${pkg}`, '');
|
||||
|
||||
const JS_SKIPS = `+(${TEST}|${LIB}|${DIST}|${NODE_MODULES})`;
|
||||
@ -78,7 +79,8 @@ function umd(done) {
|
||||
() => gulp.src('./webpack/editor.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>'])),
|
||||
() => gulp.src('./webpack/filter.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>'])),
|
||||
() => gulp.src('./webpack/overlay.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>'])),
|
||||
() => gulp.src('./webpack/paginator.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>']))
|
||||
() => gulp.src('./webpack/paginator.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>'])),
|
||||
() => gulp.src('./webpack/toolkit.umd.babel.js').pipe(shell(['webpack --config <%= file.path %>']))
|
||||
)();
|
||||
done();
|
||||
}
|
||||
|
||||
@ -10,6 +10,13 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"files": [
|
||||
"lib/",
|
||||
"dist/"
|
||||
],
|
||||
"tags": [
|
||||
"react"
|
||||
],
|
||||
"author": "AllenFang",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
16
webpack/toolkit.umd.babel.js
Normal file
16
webpack/toolkit.umd.babel.js
Normal file
@ -0,0 +1,16 @@
|
||||
import * as path from 'path';
|
||||
import umdConfig from './webpack.umd.babel';
|
||||
|
||||
module.exports = {
|
||||
...umdConfig,
|
||||
entry: {
|
||||
'react-bootstrap-table2-toolkit/dist/react-bootstrap-table2-toolkit': './packages/react-bootstrap-table2-toolkit/index.js',
|
||||
'react-bootstrap-table2-toolkit/dist/react-bootstrap-table2-toolkit.min': './packages/react-bootstrap-table2-toolkit/index.js'
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, '../packages'),
|
||||
filename: '[name].js',
|
||||
library: 'ReactBootstrapTable2Toolkit',
|
||||
libraryTarget: 'umd'
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user