Skip to content

Commit

Permalink
cleaning up build and adding release script
Browse files Browse the repository at this point in the history
  • Loading branch information
okwolf committed Mar 5, 2018
1 parent 5661516 commit 634e52b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@
"dist/**"
],
"scripts": {
"clean": "npx rimraf coverage dist node_modules",
"format": "prettier --write '{src,test}/**/*.js'",
"format:check": "prettier --list-different {src,test}/**/*.js",
"test": "jest --coverage --no-cache",
"build": "npm run bundle && npm run minify",
"bundle": "rollup -i src/index.js -o dist/hyperappLogger.js -m -f umd -n hyperappLogger",
"minify": "uglifyjs dist/hyperappLogger.js -o dist/hyperappLogger.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=hyperappLogger.js.map",
"check": "npm run format:check && npm t",
"build": "npm run check && npm run bundle && npm run minify",
"prepare": "npm run build",
"format": "prettier --semi false --write '{src,test}/**/*.js'"
"release": "npm run clean && npm i && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"prettier": {
"semi": false
},
"babel": {
"presets": "env"
Expand Down

0 comments on commit 634e52b

Please sign in to comment.