Skip to content

Commit

Permalink
feat(npm): smaller npm published size
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 30, 2015
1 parent 60f4042 commit 5ec7a4e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@
"bugs": {
"url": "https://github.com/bahmutov/next-update/issues"
},
"files": [
"bin",
"index.js",
"src",
"!src/test"
],
"config": {
"pre-git": {
"commit-msg": "validate-commit-msg",
"pre-commit": [
"npm run build",
"npm test"
],
"pre-push": [],
"pre-push": [
"npm run size"
],
"post-commit": [
"npm version"
],
Expand Down Expand Up @@ -101,6 +109,7 @@
"self-update": "node bin/next-update.js -k true",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "npm run build && npm run unit && npm run e2e",
"unit": "gt src/test/*.js src/test/*.coffee --output"
"unit": "gt src/test/*.js src/test/*.coffee --output",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
}
}

0 comments on commit 5ec7a4e

Please sign in to comment.