diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-29 16:03:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-29 16:03:16 +0200 |
commit | 7f283791544195fa70c51003db9be3f029c014ef (patch) | |
tree | 4a5ac11ed2a3f1b6e6e0a8d3e7bedd641c0f186f /packages/gitbook-plugin-sharing | |
parent | 6f98ee18468e88af01a066eb6e203e4d6ef0a52c (diff) | |
download | gitbook-7f283791544195fa70c51003db9be3f029c014ef.zip gitbook-7f283791544195fa70c51003db9be3f029c014ef.tar.gz gitbook-7f283791544195fa70c51003db9be3f029c014ef.tar.bz2 |
Fix dist command
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 +}); |