diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-28 14:54:01 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-28 14:54:01 +0200 |
commit | 26fc021b900f6b28a180fa8360313b3193e6bf5e (patch) | |
tree | dd2e7f4472ac61287843a245fcdf6aa41503660b /packages | |
parent | c314281da07870a7650a95fc593b2137a8d16c2f (diff) | |
download | gitbook-26fc021b900f6b28a180fa8360313b3193e6bf5e.zip gitbook-26fc021b900f6b28a180fa8360313b3193e6bf5e.tar.gz gitbook-26fc021b900f6b28a180fa8360313b3193e6bf5e.tar.bz2 |
Fix lerna bootstrap
Diffstat (limited to 'packages')
8 files changed, 10 insertions, 7 deletions
diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json index 4d5a40a..8899a0d 100644 --- a/packages/gitbook-core/package.json +++ b/packages/gitbook-core/package.json @@ -4,6 +4,7 @@ "description": "Core for GitBook plugins API", "main": "./lib/index.js", "dependencies": { + "classnames": "^2.2.5", "html-tags": "^1.1.1", "immutable": "^3.8.1", "react": "^15.3.1", @@ -27,7 +28,7 @@ }, "scripts": { "dist-lib": "rm -rf lib/ && babel -d lib/ src/", - "dist-standalone": "browserify -r ./lib/index.js:gitbook-core -r react -r react-dom ./lib/index.js | uglifyjs -c > ./dist/gitbook.core.min.js", + "dist-standalone": "mkdir -p dist && browserify -r ./lib/index.js:gitbook-core -r react -r react-dom ./lib/index.js | uglifyjs -c > ./dist/gitbook.core.min.js", "dist": "npm run dist-lib && npm run dist-standalone", "prepublish": "npm run dist" }, diff --git a/packages/gitbook-core/src/index.js b/packages/gitbook-core/src/index.js index 7ae4841..02eb68f 100644 --- a/packages/gitbook-core/src/index.js +++ b/packages/gitbook-core/src/index.js @@ -1,3 +1,4 @@ +const React = require('react'); const Head = require('react-helmet'); const { Provider } = require('react-redux'); const { Flex, Box } = require('reflexbox'); @@ -45,6 +46,7 @@ module.exports = { Link, Icon, Button, + React, // Utilities Shapes }; diff --git a/packages/gitbook-plugin-theme-default/src/components/Body.js b/packages/gitbook-plugin-theme-default/src/components/Body.js index de97b5c..b4d9fe6 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Body.js +++ b/packages/gitbook-plugin-theme-default/src/components/Body.js @@ -1,5 +1,5 @@ -const React = require('react'); const GitBook = require('gitbook-core'); +const { React } = GitBook; const Page = require('./Page'); const Toolbar = require('./Toolbar'); diff --git a/packages/gitbook-plugin-theme-default/src/components/Page.js b/packages/gitbook-plugin-theme-default/src/components/Page.js index a7d8ef7..177de20 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Page.js +++ b/packages/gitbook-plugin-theme-default/src/components/Page.js @@ -1,5 +1,5 @@ -const React = require('react'); const GitBook = require('gitbook-core'); +const { React } = GitBook; const Page = React.createClass({ propTypes: { diff --git a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js index ff4fcbf..39ca271 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js +++ b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js @@ -1,5 +1,5 @@ -const React = require('react'); const GitBook = require('gitbook-core'); +const { React } = GitBook; const Summary = require('./Summary'); diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js index ba21a04..01f3044 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Summary.js +++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js @@ -1,6 +1,6 @@ -const React = require('react'); const classNames = require('classnames'); const GitBook = require('gitbook-core'); +const { React } = GitBook; let SummaryArticle = React.createClass({ propTypes: { diff --git a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js index a7958d6..ca6b7f3 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js +++ b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js @@ -1,5 +1,5 @@ -const React = require('react'); const GitBook = require('gitbook-core'); +const { React } = GitBook; const sidebar = require('../actions/sidebar'); diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js index a8eeb91..ce678e1 100644 --- a/packages/gitbook-plugin-theme-default/src/index.js +++ b/packages/gitbook-plugin-theme-default/src/index.js @@ -1,5 +1,5 @@ -const React = require('react'); const GitBook = require('gitbook-core'); +const { React } = GitBook; const Sidebar = require('./components/Sidebar'); const Body = require('./components/Body'); |