Skip to content

Commit

Permalink
feat(size): smaller npm install size
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Dec 4, 2016
1 parent 6a2cefb commit 73cfc5d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
"main": "index.js",
"scripts": {
"test": "node test/chdir-promise-spec.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commit": "commit-wizard",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
},
"repository": {
"type": "git",
"url": "https://github.com/bahmutov/chdir-promise.git"
},
"files": [
"index.js"
],
"keywords": [
"chdir",
"change",
Expand All @@ -36,8 +41,17 @@
"spots": "0.4.0"
},
"devDependencies": {
"pre-git": "0.1.1",
"pre-git": "^3.11.1",
"semantic-release": "^6.3.2"
},
"pre-commit": "npm test"
"config": {
"pre-git": {
"commit-msg": "simple",
"pre-commit": ["npm test"],
"pre-push": ["npm run size"],
"post-commit": [],
"post-checkout": [],
"post-merge": []
}
}
}

0 comments on commit 73cfc5d

Please sign in to comment.