diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-29 13:15:41 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-29 13:15:41 +0200 |
commit | 42d53ec0323956c1536666793823f41ee874d2ce (patch) | |
tree | 20107cc323de6c6c732fa4f5d2043b994ee2ea14 /packages/gitbook-plugin/template | |
parent | 287c80b2e116572669f2a7073731ba7350e3619a (diff) | |
download | gitbook-42d53ec0323956c1536666793823f41ee874d2ce.zip gitbook-42d53ec0323956c1536666793823f41ee874d2ce.tar.gz gitbook-42d53ec0323956c1536666793823f41ee874d2ce.tar.bz2 |
Add gitbook-plugin command to create a plugin
Diffstat (limited to 'packages/gitbook-plugin/template')
-rw-r--r-- | packages/gitbook-plugin/template/index.js | 10 | ||||
-rw-r--r-- | packages/gitbook-plugin/template/src/index.js | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/gitbook-plugin/template/index.js b/packages/gitbook-plugin/template/index.js new file mode 100644 index 0000000..e542ae8 --- /dev/null +++ b/packages/gitbook-plugin/template/index.js @@ -0,0 +1,10 @@ + +module.exports = { + blocks: { + + }, + + hooks: { + + } +}; diff --git a/packages/gitbook-plugin/template/src/index.js b/packages/gitbook-plugin/template/src/index.js new file mode 100644 index 0000000..d8e52bf --- /dev/null +++ b/packages/gitbook-plugin/template/src/index.js @@ -0,0 +1,8 @@ +const GitBook = require('gitbook-core'); + +module.exports = GitBook.createPlugin({ + init: (dispatch, getState) => { + + }, + reduce: (state, action) => state +}); |