feat: improve npm scripts

This commit is contained in:
Yarmo Mackenbach 2024-06-15 19:23:07 +02:00
parent c651c4e148
commit 0313433929
No known key found for this signature in database
GPG key ID: C248C28D432560ED

View file

@ -57,7 +57,7 @@
"rollup-plugin-visualizer": "^5.9.2"
},
"scripts": {
"release": "node ./prerelease.js && npm run test && npm run build",
"release": "node ./prerelease.js && npm test && npm run build",
"build": "rm -rf ./dist/ && npm run build:bundle && npm run build:minify",
"build:bundle": "rollup -c",
"build:minify": "minify ./dist/doip.core.js > ./dist/doip.core.min.js && minify ./dist/doip.fetchers.js > ./dist/doip.fetchers.min.js && minify ./dist/doip.fetchers.minimal.js > ./dist/doip.fetchers.minimal.min.js",
@ -67,7 +67,8 @@
"docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"test": "npm run lint && npm run license:check && mocha",
"pretest": "npm run lint && npm run license:check",
"test": "mocha",
"prepare": "husky install"
},
"repository": {