summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin/template
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin/template')
-rw-r--r--packages/gitbook-plugin/template/.eslintignore2
-rw-r--r--packages/gitbook-plugin/template/.eslintrc3
-rw-r--r--packages/gitbook-plugin/template/.gitignore31
-rw-r--r--packages/gitbook-plugin/template/.npmignore2
-rw-r--r--packages/gitbook-plugin/template/index.js10
-rw-r--r--packages/gitbook-plugin/template/src/index.js11
6 files changed, 59 insertions, 0 deletions
diff --git a/packages/gitbook-plugin/template/.eslintignore b/packages/gitbook-plugin/template/.eslintignore
new file mode 100644
index 0000000..1d35cda
--- /dev/null
+++ b/packages/gitbook-plugin/template/.eslintignore
@@ -0,0 +1,2 @@
+# Plugin assets
+_assets/plugin.js
diff --git a/packages/gitbook-plugin/template/.eslintrc b/packages/gitbook-plugin/template/.eslintrc
new file mode 100644
index 0000000..90359b2
--- /dev/null
+++ b/packages/gitbook-plugin/template/.eslintrc
@@ -0,0 +1,3 @@
+{
+ "extends": "gitbook/plugin"
+}
diff --git a/packages/gitbook-plugin/template/.gitignore b/packages/gitbook-plugin/template/.gitignore
new file mode 100644
index 0000000..ef47881
--- /dev/null
+++ b/packages/gitbook-plugin/template/.gitignore
@@ -0,0 +1,31 @@
+# Logs
+logs
+*.log
+
+# Runtime data
+pids
+*.pid
+*.seed
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directory
+# Deployed apps should consider commenting this line out:
+# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
+node_modules
+
+# vim swapfile
+*.swp
+
+# Plugin assets
+_assets/plugin.js
diff --git a/packages/gitbook-plugin/template/.npmignore b/packages/gitbook-plugin/template/.npmignore
new file mode 100644
index 0000000..a0e53cf
--- /dev/null
+++ b/packages/gitbook-plugin/template/.npmignore
@@ -0,0 +1,2 @@
+# Publish assets on NPM
+!_assets/plugin.js
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..0fe8869
--- /dev/null
+++ b/packages/gitbook-plugin/template/src/index.js
@@ -0,0 +1,11 @@
+const GitBook = require('gitbook-core');
+
+module.exports = GitBook.createPlugin({
+ activate: (dispatch, getState) => {
+ // Dispatch initialization actions
+ },
+ deactivate: (dispatch, getState) => {
+ // Dispatch cleanup actions
+ },
+ reduce: (state, action) => state
+});