Skip to content

Commit

Permalink
(docs): run doctoc on pre-commit (#399)
Browse files Browse the repository at this point in the history
- and install it as a devDep

- doctoc is used in the README ToC and listed in comment, but wasn't
  a devDep or used in any internal scripts
  • Loading branch information
agilgur5 authored and jaredpalmer committed Dec 29, 2019
1 parent 97fd059 commit f338613
Show file tree
Hide file tree
Showing 2 changed files with 361 additions and 7 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,15 @@
"@types/react": "^16.9.11",
"@types/rollup-plugin-json": "^3.0.2",
"@types/rollup-plugin-sourcemaps": "^0.4.2",
"doctoc": "^1.4.0",
"husky": "^3.0.9",
"pretty-quick": "^2.0.0",
"ps-tree": "^1.2.0",
"react": "^16.8.6"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern '!test/tests/lint/**' && yarn lint"
"pre-commit": "pretty-quick --staged --pattern '!test/tests/lint/**' && yarn lint && doctoc README.md"
}
},
"prettier": {
Expand Down
Loading

0 comments on commit f338613

Please sign in to comment.