2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +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
+37 -35
View File
@@ -18,42 +18,35 @@
},
"license": "MIT",
"devDependencies": {
"@babel/cli": "7.7.7",
"@babel/core": "7.7.7",
"@babel/plugin-external-helpers": "7.7.4",
"@babel/plugin-transform-modules-commonjs": "7.7.5",
"@babel/preset-env": "7.7.7",
"@babel/preset-react": "7.7.4",
"@commitlint/cli": "8.3.4",
"@commitlint/config-conventional": "8.3.4",
"@rollup/plugin-commonjs": "11.0.1",
"@rollup/plugin-node-resolve": "7.0.0",
"@rollup/plugin-replace": "2.3.0",
"@size-limit/preset-small-lib": "3.0.0",
"babel-jest": "24.9.0",
"benchmark": "2.1.4",
"bundlesize": "0.18.0",
"cross-env": "6.0.3",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.0.1",
"eslint-plugin-import": "2.19.1",
"eslint-plugin-jest": "23.4.0",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.17.0",
"husky": "4.0.6",
"jest": "24.9.0",
"jsdoc-to-markdown": "5.0.3",
"lerna": "3.20.2",
"lint-staged": "9.5.0",
"@commitlint/cli": "13.2.1",
"@commitlint/config-conventional": "13.2.0",
"@rollup/plugin-commonjs": "21.0.0",
"@rollup/plugin-node-resolve": "13.0.5",
"@rollup/plugin-replace": "3.0.0",
"@size-limit/preset-small-lib": "6.0.1",
"@swc/cli": "0.1.51",
"@swc/core": "1.2.98",
"@swc/jest": "0.2.4",
"bundlesize": "0.18.1",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"eslint-config-airbnb": "18.2.1",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jest": "25.0.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.26.1",
"husky": "7.0.2",
"jest": "27.2.5",
"lerna": "4.0.0",
"lint-staged": "11.2.3",
"microtime": "3.0.0",
"posthtml-render": "^1.1.5",
"rimraf": "^2.7.1",
"rollup": "1.29.0",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-terser": "5.2.0",
"size-limit": "3.0.0",
"xbbcode-parser": "0.1.2",
"ya-bbcode": "1.0.12"
"posthtml-render": "^3.0.0",
"rimraf": "^3.0.2",
"rollup": "2.58.0",
"rollup-plugin-gzip": "2.5.0",
"rollup-plugin-swc": "0.2.0",
"rollup-plugin-terser": "7.0.2",
"size-limit": "6.0.1"
},
"publishConfig": {
"access": "public",
@@ -63,5 +56,14 @@
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"pkgTasks": {
"build-commonjs": "@/cross-env BABEL_ENV=commonjs NODE_ENV=production @/swc --config-file ../../.swcrc-commonjs --out-dir lib src",
"build-es": "@/cross-env BABEL_ENV=es NODE_ENV=production @/swc --out-dir es src",
"build-umd": "@/cross-env BABEL_ENV=rollup NODE_ENV=production @/rollup --config ../../rollup.config.js",
"test": "@/jest",
"cover": "@/jest --config ../../jest.config.js --coverage .",
"lint": "@/eslint .",
"bundlesize": "@/cross-env NODE_ENV=production @/bundlesize ."
}
}