File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 24
24
"gitdown" : " ^2.5.4" ,
25
25
"glob" : " ^7.1.3" ,
26
26
"globby" : " ^8.0.1" ,
27
+ "husky" : " ^1.1.2" ,
27
28
"marked" : " ^0.5.1" ,
28
29
"mocha" : " ^5.2.0" ,
29
30
"semantic-release" : " ^15.10.3"
30
31
},
31
32
"engines" : {
32
33
"node" : " >=4"
33
34
},
35
+ "husky" : {
36
+ "hooks" : {
37
+ "post-commit" : " npm run create-readme && git add README.md && git commit -m 'docs: generate docs' --no-verify" ,
38
+ "pre-commit" : " npm run lint && npm run test && npm run build"
39
+ }
40
+ },
34
41
"keywords" : [
35
42
" eslint" ,
36
43
" plugin" ,
49
56
"scripts" : {
50
57
"add-assertions" : " babel-node --presets es2015 ./src/bin/readme-assertions" ,
51
58
"build" : " NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps" ,
52
- "generate -readme" : " gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions" ,
59
+ "create -readme" : " gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions" ,
53
60
"lint" : " eslint ./src ./test" ,
54
61
"test" : " mocha --recursive --compilers js:@babel/register"
55
62
},
You can’t perform that action at this time.
0 commit comments