diff options
Diffstat (limited to 'packages/gitbook-plugin-sharing')
-rw-r--r-- | packages/gitbook-plugin-sharing/.gitignore | 31 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/.npmignore | 2 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/index.js | 10 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/package.json | 28 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/src/index.js | 8 |
5 files changed, 79 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-sharing/.gitignore b/packages/gitbook-plugin-sharing/.gitignore new file mode 100644 index 0000000..7c6f0eb --- /dev/null +++ b/packages/gitbook-plugin-sharing/.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 diff --git a/packages/gitbook-plugin-sharing/.npmignore b/packages/gitbook-plugin-sharing/.npmignore new file mode 100644 index 0000000..7bc36b7 --- /dev/null +++ b/packages/gitbook-plugin-sharing/.npmignore @@ -0,0 +1,2 @@ +# Publish assets on NPM +!_assets diff --git a/packages/gitbook-plugin-sharing/index.js b/packages/gitbook-plugin-sharing/index.js new file mode 100644 index 0000000..e542ae8 --- /dev/null +++ b/packages/gitbook-plugin-sharing/index.js @@ -0,0 +1,10 @@ + +module.exports = { + blocks: { + + }, + + hooks: { + + } +}; diff --git a/packages/gitbook-plugin-sharing/package.json b/packages/gitbook-plugin-sharing/package.json new file mode 100644 index 0000000..1519136 --- /dev/null +++ b/packages/gitbook-plugin-sharing/package.json @@ -0,0 +1,28 @@ +{ + "name": "gitbook-plugin-sharing", + "description": "Sharing button in the toolbar", + "main": "index.js", + "browser": "./_assets/theme.js", + "version": "0.0.0", + "dependencies": { + "gitbook-core": "^0.0.0" + }, + "devDependencies": { + "gitbook-plugin": "*" + }, + "engines": { + "gitbook": ">=3.0.0" + }, + "scripts": { + "build-js": "gitbook-plugin build ./src/index.js ./_assets/theme.js", + "prepublish": "npm run build-js" + }, + "homepage": "https://github.com/GitbookIO/gitbook", + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + } +} diff --git a/packages/gitbook-plugin-sharing/src/index.js b/packages/gitbook-plugin-sharing/src/index.js new file mode 100644 index 0000000..d8e52bf --- /dev/null +++ b/packages/gitbook-plugin-sharing/src/index.js @@ -0,0 +1,8 @@ +const GitBook = require('gitbook-core'); + +module.exports = GitBook.createPlugin({ + init: (dispatch, getState) => { + + }, + reduce: (state, action) => state +}); |