Add size-limit & eslint-ci

pull/1/head
Nikita Karamov 2020-03-25 22:09:35 +01:00
parent 3023b8d9af
commit f907a48bd5
No known key found for this signature in database
GPG Key ID: E40DFE6E993540FF
3 changed files with 2685 additions and 41 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ dev
dist
.idea
node_modules
yarn-error.log

View File

@ -22,16 +22,19 @@
"build": "rollup -c ./rollup/rollup.config.prod.js",
"dev": "rollup -w -c ./rollup/rollup.config.dev.js",
"pretest": "run-p build",
"test:lint": "eslint --ext .js,.ts ./src/",
"test:lint": "eslint-ci --ext .js,.ts ./src/",
"test:size": "size-limit",
"test": "run-p test:*"
},
"dependencies": {},
"devDependencies": {
"@rollup/plugin-strip": "^1.3.2",
"@rollup/plugin-typescript": "^4.0.0",
"@size-limit/preset-small-lib": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^2.24.0",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-ci": "^1.0.0",
"eslint-config-airbnb-typescript": "^7.2.0",
"eslint-plugin-import": "^2.20.1",
"node-sass": "^4.13.1",
@ -41,6 +44,18 @@
"rollup-plugin-banner": "^0.2.1",
"rollup-plugin-postcss": "^2.5.0",
"rollup-plugin-terser": "^5.3.0",
"size-limit": "^4.4.1",
"typescript": "^3.8.3"
}
},
"size-limit": [
{
"limit": "1 KB",
"path": "./dist/shareon.min.js",
"webpack": false
},
{
"limit": "1 KB",
"path": ["./dist/shareon.cjs", "./dist/shareon.mjs"]
}
]
}

2706
yarn.lock

File diff suppressed because it is too large Load Diff