Skip to content

Commit 634e52b

Browse files
committed
cleaning up build and adding release script
1 parent 5661516 commit 634e52b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@
1414
"dist/**"
1515
],
1616
"scripts": {
17+
"clean": "npx rimraf coverage dist node_modules",
18+
"format": "prettier --write '{src,test}/**/*.js'",
19+
"format:check": "prettier --list-different {src,test}/**/*.js",
1720
"test": "jest --coverage --no-cache",
18-
"build": "npm run bundle && npm run minify",
1921
"bundle": "rollup -i src/index.js -o dist/hyperappLogger.js -m -f umd -n hyperappLogger",
2022
"minify": "uglifyjs dist/hyperappLogger.js -o dist/hyperappLogger.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=hyperappLogger.js.map",
23+
"check": "npm run format:check && npm t",
24+
"build": "npm run check && npm run bundle && npm run minify",
2125
"prepare": "npm run build",
22-
"format": "prettier --semi false --write '{src,test}/**/*.js'"
26+
"release": "npm run clean && npm i && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
27+
},
28+
"prettier": {
29+
"semi": false
2330
},
2431
"babel": {
2532
"presets": "env"

0 commit comments

Comments
 (0)