Skip to content

Commit

Permalink
Automate documentation generation in each commit (#10) (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfern91 committed Jan 25, 2019
1 parent 8ee42e5 commit ea30040
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"post-commit": "npm run build && git add . && git commit -m '🐕 [husky] Update documentation'",
}
}
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
console.warn('unable to connect to parent frame for connecting dev tools');
}</script></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the storybook config.</li><li>Try reloading the page.</li></ul></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code">
<code id="error-stack"></code>
</pre></div><div id="root"></div><script src="static/runtime~iframe.36305751f78a2d599ec4.bundle.js"></script><script src="static/vendors~iframe.267cdde89d1caef22cbd.bundle.js"></script><script src="static/iframe.d259d73f1de30c70a541.bundle.js"></script></body></html>
</pre></div><div id="root"></div><script src="static/runtime~iframe.36305751f78a2d599ec4.bundle.js"></script><script src="static/vendors~iframe.267cdde89d1caef22cbd.bundle.js"></script><script src="static/iframe.6236c9e2ebf1ed377bda.bundle.js"></script></body></html>

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 110 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "jest --coverage",
"test:watch": "jest --watch",
"lint": "eslint src/{,**/}*.js",
"build": "NODE_ENV=production babel src --verbose --out-dir lib && node-sass src/Histogram/Histogram.scss lib/css/brushable-histogram.css",
"build": "NODE_ENV=production babel src --verbose --out-dir lib && node-sass src/Histogram/Histogram.scss lib/css/brushable-histogram.css && npm run build-storybook",
"storybook": "start-storybook -p 6006",
"build-storybook": "rm -rf docs && build-storybook -o docs",
"publish:dry": "fdz-deploy --dry",
Expand Down Expand Up @@ -58,6 +58,7 @@
"eslint-plugin-jest": "^22.0.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"husky": "^1.3.1",
"jest": "^23.6.0",
"node-sass": "^4.10.0",
"react-dom": "16.6.1",
Expand Down

0 comments on commit ea30040

Please sign in to comment.