summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin/template/src/index.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-29 13:15:41 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-29 13:15:41 +0200
commit42d53ec0323956c1536666793823f41ee874d2ce (patch)
tree20107cc323de6c6c732fa4f5d2043b994ee2ea14 /packages/gitbook-plugin/template/src/index.js
parent287c80b2e116572669f2a7073731ba7350e3619a (diff)
downloadgitbook-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/src/index.js')
-rw-r--r--packages/gitbook-plugin/template/src/index.js8
1 files changed, 8 insertions, 0 deletions
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
+});