mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-05 16:42:27 +03:00
chore: add bundle size restrictions to all packages
This commit is contained in:
Generated
+13583
File diff suppressed because it is too large
Load Diff
+5
-3
@@ -3,9 +3,10 @@
|
||||
"prepublishOnly": "npm run test",
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"publish-all": "lerna run build && lerna publish --conventional-commits --registry=https://registry.npmjs.org/",
|
||||
"test": "lerna run build && lerna run link && lerna run test",
|
||||
"cover": "lerna run cover",
|
||||
"lint": "lerna run build && lerna run link && lerna run lint"
|
||||
"size": "lerna run --parallel bundlesize",
|
||||
"test": "lerna run --parallel build && lerna run link && lerna run --parallel test && lerna run --parallel size",
|
||||
"cover": "lerna run --parallel cover",
|
||||
"lint": "lerna run build && lerna run link && lerna run lint && lerna"
|
||||
},
|
||||
"author": {
|
||||
"name": "Nikolay Kostyurin <jilizart@gmail.com>",
|
||||
@@ -26,6 +27,7 @@
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"benchmark": "^2.1.4",
|
||||
"bundlesize": "^0.17.0",
|
||||
"cross-env": "^5.2.0",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-airbnb": "^16.1.0",
|
||||
|
||||
@@ -50,13 +50,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "3.2 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -30,13 +30,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "3.5 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"size-limit": [
|
||||
@@ -46,6 +47,12 @@
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"threshold": "2.7 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"size-limit": [
|
||||
@@ -38,6 +39,12 @@
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "500 B"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -39,13 +39,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "1.6 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -38,13 +38,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "1.7 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -35,13 +35,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "410 B"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
@@ -47,13 +47,20 @@
|
||||
"test": "../../node_modules/.bin/jest --",
|
||||
"cover": "../../node_modules/.bin/jest --coverage",
|
||||
"lint": "../../node_modules/.bin/eslint .",
|
||||
"size": "../../node_modules/.bin/size-limit"
|
||||
"size": "../../node_modules/.bin/size-limit",
|
||||
"bundlesize": "../../node_modules/.bin/bundlesize"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"path": "lib/index.js"
|
||||
}
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/index.min.js",
|
||||
"maxSize": "6.6 KB"
|
||||
}
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user