mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
babel build
This commit is contained in:
parent
ec705f2651
commit
4bd73056d0
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,4 +20,5 @@ yarn-error.log*
|
|||||||
storybook-static
|
storybook-static
|
||||||
|
|
||||||
# build
|
# build
|
||||||
|
lib
|
||||||
dist
|
dist
|
||||||
|
|||||||
36
gulpfile.babel.js
Normal file
36
gulpfile.babel.js
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import gulp from 'gulp';
|
||||||
|
import babel from 'gulp-babel';
|
||||||
|
import rimraf from 'rimraf';
|
||||||
|
import * as path from 'path';
|
||||||
|
|
||||||
|
|
||||||
|
gulp.task('default', ['prod']);
|
||||||
|
|
||||||
|
gulp.task('clean', () => {
|
||||||
|
[
|
||||||
|
path.join(__dirname, 'packages/react-bootstrap-table2/lib'),
|
||||||
|
path.join(__dirname, 'packages/react-bootstrap-table2-editor/lib'),
|
||||||
|
path.join(__dirname, 'packages/react-bootstrap-table2-filter/lib'),
|
||||||
|
path.join(__dirname, 'packages/react-bootstrap-table2-overlay/lib'),
|
||||||
|
path.join(__dirname, 'packages/react-bootstrap-table2-paginator/lib')
|
||||||
|
].forEach((dir) => {
|
||||||
|
rimraf.sync(dir);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('prod', ['clean'], () => {
|
||||||
|
[
|
||||||
|
'react-bootstrap-table2',
|
||||||
|
'react-bootstrap-table2-editor',
|
||||||
|
'react-bootstrap-table2-filter',
|
||||||
|
'react-bootstrap-table2-overlay',
|
||||||
|
'react-bootstrap-table2-paginator'
|
||||||
|
].forEach((pkg) => {
|
||||||
|
gulp.src([
|
||||||
|
`./packages/${pkg}/**/*.js`,
|
||||||
|
`!packages/${pkg}/+(test|dist|node_modules)/**/*.js`
|
||||||
|
])
|
||||||
|
.pipe(babel())
|
||||||
|
.pipe(gulp.dest(`./packages/${pkg}/lib`));
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "lerna bootstrap",
|
"postinstall": "lerna bootstrap",
|
||||||
"publish": "lerna run build && lerna publish --silent",
|
"publish": "lerna run build && lerna publish --silent",
|
||||||
"build": "node -r babel-register build.js",
|
"build": "node -r babel-register build.js && ./node_modules/.bin/gulp prod",
|
||||||
"start": "node -r babel-register ./node_modules/.bin/webpack-dev-server --config webpack.config.babel.js",
|
"start": "node -r babel-register ./node_modules/.bin/webpack-dev-server --config webpack.config.babel.js",
|
||||||
"lint": "eslint ./packages --ext .js --ext .jsx --ignore-path .gitignore",
|
"lint": "eslint ./packages --ext .js --ext .jsx --ignore-path .gitignore",
|
||||||
"pretest": "yarn lint --cache",
|
"pretest": "yarn lint --cache",
|
||||||
@ -46,6 +46,8 @@
|
|||||||
"eslint-plugin-import": "2.7.0",
|
"eslint-plugin-import": "2.7.0",
|
||||||
"eslint-plugin-jsx-a11y": "5.1.1",
|
"eslint-plugin-jsx-a11y": "5.1.1",
|
||||||
"eslint-plugin-react": "7.2.1",
|
"eslint-plugin-react": "7.2.1",
|
||||||
|
"gulp": "3.9.1",
|
||||||
|
"gulp-babel": "7.0.0",
|
||||||
"html-webpack-plugin": "2.30.1",
|
"html-webpack-plugin": "2.30.1",
|
||||||
"jest": "20.0.4",
|
"jest": "20.0.4",
|
||||||
"jsdom": "11.2.0",
|
"jsdom": "11.2.0",
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "react-bootstrap-table2-editor",
|
"name": "react-bootstrap-table2-editor",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "it's the editor addon for react-bootstrap-table2",
|
"description": "it's the editor addon for react-bootstrap-table2",
|
||||||
"main": "./dist/react-bootstrap-table2-editor.min.js",
|
"main": "./lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "react-bootstrap-table2-filter",
|
"name": "react-bootstrap-table2-filter",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "it's the column filter addon for react-bootstrap-table2",
|
"description": "it's the column filter addon for react-bootstrap-table2",
|
||||||
"main": "./dist/react-bootstrap-table2-filter.min.js",
|
"main": "./lib/index.js",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "react-bootstrap-table2-overlay",
|
"name": "react-bootstrap-table2-overlay",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "it's a loading overlay component for react-bootstrap-table2",
|
"description": "it's a loading overlay component for react-bootstrap-table2",
|
||||||
"main": "./dist/react-bootstrap-table2-overlay.min.js",
|
"main": "./lib/index.js",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "react-bootstrap-table2-paginator",
|
"name": "react-bootstrap-table2-paginator",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "it's the pagination addon for react-bootstrap-table2",
|
"description": "it's the pagination addon for react-bootstrap-table2",
|
||||||
"main": "./dist/react-bootstrap-table2-paginator.min.js",
|
"main": "./lib/index.js",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "react-bootstrap-table2",
|
"name": "react-bootstrap-table2",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Rebuilt for react-bootstrap-table",
|
"description": "Rebuilt for react-bootstrap-table",
|
||||||
"main": "./dist/react-bootstrap-table2.min.js",
|
"main": "./lib/index.js",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user