Skip to content

Commit 9b7c092

Browse files
committed
feat(npm): smaller published size, closes #22
1 parent 5af28a9 commit 9b7c092

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88
},
99
"config": {
1010
"pre-git": {
11-
"commit-msg": "validate-commit-msg",
11+
"commit-msg": "simple",
1212
"pre-commit": [
13-
"npm test",
14-
"npm version"
13+
"npm test"
1514
],
16-
"pre-push": [],
15+
"pre-push": ["npm run size"],
1716
"post-commit": [],
1817
"post-merge": []
1918
}
2019
},
2120
"contributors": [],
22-
"czConfig": {
23-
"path": "node_modules/cz-conventional-changelog"
24-
},
2521
"dependencies": {},
2622
"devDependencies": {
2723
"eslint-rules": "0.4.3",
@@ -37,7 +33,7 @@
3733
"grunt-npm2bower-sync": "0.9.1",
3834
"jshint-summary": "0.4.0",
3935
"matchdep": "1.0.0",
40-
"pre-git": "1.4.0"
36+
"pre-git": "3.1.2"
4137
},
4238
"engines": {
4339
"node": "> 0.10.*"
@@ -53,6 +49,9 @@
5349
"test",
5450
"testing"
5551
],
52+
"files": [
53+
"*.js"
54+
],
5655
"license": "MIT",
5756
"main": "first-paint.js",
5857
"repository": {
@@ -64,6 +63,7 @@
6463
"commit": "git-issues && commit-wizard",
6564
"grunt": "grunt",
6665
"issues": "git-issues",
67-
"test": "grunt"
66+
"test": "grunt",
67+
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
6868
}
6969
}

0 commit comments

Comments
 (0)