2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-20 20:00:33 +03:00

feat: update core deps (#120)

* feat: use swc.rs instead of babel

* BREAKING CHANGE: now we use swc.rs as main bundler and transpiler instead of babel
  - jest now uses swc
  - rollup now uses swc

* feat: benchmark now separate package with `npm start` and colored output
  - benchmark as separate package with error throw if package drops performance

* feat: all lerna packages now using scripts/pkg-task

* feat(github): publish to npm and github registry
  - when release was created this action automaticly publish packages to npm and github

* feat(github): move all from Travis CI to Github Actions
  - code analysis and tests now using github actions

* test: increase tests coverage
  - add more tests for @bbob/react, @bbob/vue2 and @bbob/parser
This commit is contained in:
Nikolay Kostyurin
2021-11-29 00:33:06 +02:00
committed by GitHub
parent 86d1dde106
commit da6709d437
66 changed files with 12410 additions and 20669 deletions
+7 -8
View File
@@ -1,5 +1,4 @@
import resolve from '@rollup/plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import replace from '@rollup/plugin-replace';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
@@ -8,26 +7,26 @@ const pkg = require(`${process.cwd()}/package.json`);
const { NODE_ENV } = process.env;
const baseConfig = {
input: 'src/index.js',
external: ['react', 'vue'],
input: 'es/index.js',
external: ['react', 'vue', 'prop-types'],
output: {
file: pkg.browser,
format: 'umd',
name: pkg.browserName,
format: 'umd',
exports: 'named',
globals: {
react: 'React',
vue: 'Vue',
'prop-types': 'PropTypes',
},
},
plugins: [
resolve(),
babel({
exclude: '**/node_modules/**',
}),
commonjs(),
replace({
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify(NODE_ENV),
}),
commonjs(),
],
};