Add size-limit & eslint-ci
parent
3023b8d9af
commit
f907a48bd5
|
@ -2,3 +2,4 @@ dev
|
|||
dist
|
||||
.idea
|
||||
node_modules
|
||||
yarn-error.log
|
||||
|
|
17
package.json
17
package.json
|
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue