diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-08 14:32:35 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-08 14:32:35 +0200 |
commit | 68ec88c62096faf5c8538bec4431868919ae9652 (patch) | |
tree | c057a90cb110af2a2343955dfc66dc0978845434 | |
parent | 47a27fc12d7b91fae9df9ed7bc63ccd645e866eb (diff) | |
download | gitbook-68ec88c62096faf5c8538bec4431868919ae9652.zip gitbook-68ec88c62096faf5c8538bec4431868919ae9652.tar.gz gitbook-68ec88c62096faf5c8538bec4431868919ae9652.tar.bz2 |
Add script to bump version
-rw-r--r-- | lerna.json | 2 | ||||
-rw-r--r-- | packages/gitbook-core/package.json | 96 | ||||
-rw-r--r-- | packages/gitbook-plugin-headings/package.json | 54 | ||||
-rw-r--r-- | packages/gitbook-plugin-highlight/package.json | 56 | ||||
-rw-r--r-- | packages/gitbook-plugin-hints/package.json | 56 | ||||
-rw-r--r-- | packages/gitbook-plugin-lunr/package.json | 74 | ||||
-rw-r--r-- | packages/gitbook-plugin-search/package.json | 56 | ||||
-rw-r--r-- | packages/gitbook-plugin-sharing/package.json | 54 | ||||
-rw-r--r-- | packages/gitbook-plugin-theme-default/package.json | 154 | ||||
-rw-r--r-- | packages/gitbook-plugin/package.json | 76 | ||||
-rw-r--r-- | packages/gitbook/package.json | 218 | ||||
-rwxr-xr-x | scripts/bump.js | 36 |
12 files changed, 484 insertions, 448 deletions
@@ -1,4 +1,4 @@ { "lerna": "2.0.0-beta.29", - "version": "0.0.0" + "version": "4.0.0" } diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json index 4e3974e..0c444b7 100644 --- a/packages/gitbook-core/package.json +++ b/packages/gitbook-core/package.json @@ -1,49 +1,49 @@ { - "name": "gitbook-core", - "version": "0.0.0", - "description": "Core for GitBook plugins API", - "main": "./lib/index.js", - "dependencies": { - "bluebird": "^3.4.6", - "classnames": "^2.2.5", - "entities": "^1.1.1", - "history": "^4.3.0", - "html-tags": "^1.1.1", - "immutable": "^3.8.1", - "react": "^15.3.1", - "react-dom": "^15.3.1", - "react-helmet": "^3.1.0", - "react-immutable-proptypes": "^2.1.0", - "react-intl": "^2.1.5", - "react-redux": "^4.4.5", - "react-safe-html": "^0.3.0", - "redux": "^3.5.2", - "redux-thunk": "^2.1.0", - "reflexbox": "^2.2.2", - "whatwg-fetch": "^1.0.0" - }, - "devDependencies": { - "babel-cli": "^6.14.0", - "babel-preset-es2015": "^6.14.0", - "babel-preset-react": "^6.11.1", - "babel-preset-stage-2": "^6.13.0", - "browserify": "^13.1.0", - "envify": "^3.4.1", - "uglify-js": "^2.7.3" - }, - "scripts": { - "dist-lib": "rm -rf lib/ && babel -d lib/ src/", - "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" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/gitbook.git" - }, - "author": "GitBook Inc. <contact@gitbook.com>", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - } -} + "name": "gitbook-core", + "version": "4.0.0", + "description": "Core for GitBook plugins API", + "main": "./lib/index.js", + "dependencies": { + "bluebird": "^3.4.6", + "classnames": "^2.2.5", + "entities": "^1.1.1", + "history": "^4.3.0", + "html-tags": "^1.1.1", + "immutable": "^3.8.1", + "react": "^15.3.1", + "react-dom": "^15.3.1", + "react-helmet": "^3.1.0", + "react-immutable-proptypes": "^2.1.0", + "react-intl": "^2.1.5", + "react-redux": "^4.4.5", + "react-safe-html": "^0.3.0", + "redux": "^3.5.2", + "redux-thunk": "^2.1.0", + "reflexbox": "^2.2.2", + "whatwg-fetch": "^1.0.0" + }, + "devDependencies": { + "babel-cli": "^6.14.0", + "babel-preset-es2015": "^6.14.0", + "babel-preset-react": "^6.11.1", + "babel-preset-stage-2": "^6.13.0", + "browserify": "^13.1.0", + "envify": "^3.4.1", + "uglify-js": "^2.7.3" + }, + "scripts": { + "dist-lib": "rm -rf lib/ && babel -d lib/ src/", + "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" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-headings/package.json b/packages/gitbook-plugin-headings/package.json index 52c69d8..5c88602 100644 --- a/packages/gitbook-plugin-headings/package.json +++ b/packages/gitbook-plugin-headings/package.json @@ -1,28 +1,28 @@ { - "name": "gitbook-plugin-headings", - "description": "Automatically add anchors to headings", - "main": "index.js", - "browser": "./_assets/plugin.js", - "version": "1.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/plugin.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" - } -} + "name": "gitbook-plugin-headings", + "description": "Automatically add anchors to headings", + "main": "index.js", + "browser": "./_assets/plugin.js", + "version": "4.0.0", + "dependencies": { + "gitbook-core": "4.0.0" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "engines": { + "gitbook": ">=3.0.0" + }, + "scripts": { + "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-highlight/package.json b/packages/gitbook-plugin-highlight/package.json index a174e6c..03d2af7 100644 --- a/packages/gitbook-plugin-highlight/package.json +++ b/packages/gitbook-plugin-highlight/package.json @@ -1,29 +1,29 @@ { - "name": "gitbook-plugin-highlight", - "description": "Syntax highlighter for Gitbook", - "main": "index.js", - "browser": "./_assets/plugin.js", - "version": "2.0.2", - "dependencies": { - "gitbook-core": "^0.0.0", - "highlight.js": "9.7.0" - }, - "devDependencies": { - "gitbook-plugin": "*" - }, - "engines": { - "gitbook": ">=3.0.0" - }, - "scripts": { - "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" - } -} + "name": "gitbook-plugin-highlight", + "description": "Syntax highlighter for Gitbook", + "main": "index.js", + "browser": "./_assets/plugin.js", + "version": "4.0.0", + "dependencies": { + "gitbook-core": "4.0.0", + "highlight.js": "9.7.0" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "engines": { + "gitbook": ">=3.0.0" + }, + "scripts": { + "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-hints/package.json b/packages/gitbook-plugin-hints/package.json index 1635d36..66dedd0 100644 --- a/packages/gitbook-plugin-hints/package.json +++ b/packages/gitbook-plugin-hints/package.json @@ -1,29 +1,29 @@ { - "name": "gitbook-plugin-hints", - "description": "Defines four types of styled hint blocks: info, danger, tip, working.", - "main": "index.js", - "browser": "./_assets/plugin.js", - "version": "2.0.0", - "dependencies": { - "classnames": "^2.2.5", - "gitbook-core": "^0.0.0" - }, - "devDependencies": { - "gitbook-plugin": "*" - }, - "engines": { - "gitbook": ">=4.0.0" - }, - "scripts": { - "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" - } -} + "name": "gitbook-plugin-hints", + "description": "Defines four types of styled hint blocks: info, danger, tip, working.", + "main": "index.js", + "browser": "./_assets/plugin.js", + "version": "4.0.0", + "dependencies": { + "classnames": "^2.2.5", + "gitbook-core": "4.0.0" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "engines": { + "gitbook": ">=4.0.0" + }, + "scripts": { + "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-lunr/package.json b/packages/gitbook-plugin-lunr/package.json index a5e5d61..7093e7f 100644 --- a/packages/gitbook-plugin-lunr/package.json +++ b/packages/gitbook-plugin-lunr/package.json @@ -1,44 +1,44 @@ { - "name": "gitbook-plugin-lunr", - "description": "Static and local index for search in GitBook", - "main": "index.js", - "browser": "./_assets/theme.js", - "version": "1.2.0", - "dependencies": { - "gitbook-core": "^0.0.0", - "html-entities": "1.2.0", - "lunr": "0.5.12" - }, - "devDependencies": { - "gitbook-plugin": "*" - }, - "engines": { - "gitbook": ">=3.0.0" - }, - "gitbook": { - "properties": { - "maxIndexSize": { + "name": "gitbook-plugin-lunr", + "description": "Static and local index for search in GitBook", + "main": "index.js", + "browser": "./_assets/theme.js", + "version": "4.0.0", + "dependencies": { + "gitbook-core": "4.0.0", + "html-entities": "1.2.0", + "lunr": "0.5.12" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "engines": { + "gitbook": ">=3.0.0" + }, + "gitbook": { + "properties": { + "maxIndexSize": { "type": "number", "title": "Limit size for the index", "default": 1000000 - }, - "ignoreSpecialCharacters": { + }, + "ignoreSpecialCharacters": { "type": "boolean", "title": "Ignore special characters in words", "default": false - } - } - }, - "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" - } -} + } + } + }, + "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" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-search/package.json b/packages/gitbook-plugin-search/package.json index d6741c9..2a5c610 100644 --- a/packages/gitbook-plugin-search/package.json +++ b/packages/gitbook-plugin-search/package.json @@ -1,29 +1,29 @@ { - "name": "gitbook-plugin-search", - "description": "Search integration in GitBook", - "main": "index.js", - "browser": "./_assets/theme.js", - "version": "2.2.1", - "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" - }, - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - } -} + "name": "gitbook-plugin-search", + "description": "Search integration in GitBook", + "main": "index.js", + "browser": "./_assets/theme.js", + "version": "4.0.0", + "dependencies": { + "gitbook-core": "4.0.0" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "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" + }, + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-sharing/package.json b/packages/gitbook-plugin-sharing/package.json index 21fc038..9586ae3 100644 --- a/packages/gitbook-plugin-sharing/package.json +++ b/packages/gitbook-plugin-sharing/package.json @@ -1,28 +1,28 @@ { - "name": "gitbook-plugin-sharing", - "description": "Sharing buttons in the toolbar", - "main": "index.js", - "browser": "./_assets/plugin.js", - "version": "4.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/plugin.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" - } -} + "name": "gitbook-plugin-sharing", + "description": "Sharing buttons in the toolbar", + "main": "index.js", + "browser": "./_assets/plugin.js", + "version": "4.0.0", + "dependencies": { + "gitbook-core": "4.0.0" + }, + "devDependencies": { + "gitbook-plugin": "4.0.0" + }, + "engines": { + "gitbook": ">=3.0.0" + }, + "scripts": { + "build-js": "gitbook-plugin build ./src/index.js ./_assets/plugin.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" + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin-theme-default/package.json b/packages/gitbook-plugin-theme-default/package.json index d26b46a..599f64c 100644 --- a/packages/gitbook-plugin-theme-default/package.json +++ b/packages/gitbook-plugin-theme-default/package.json @@ -1,79 +1,79 @@ { - "name": "gitbook-plugin-theme-default", - "description": "Default theme for GitBook", - "main": "./index.js", - "browser": "./_assets/theme.js", - "version": "1.0.5", - "engines": { - "gitbook": ">=3.0.0" - }, - "dependencies": { - "gitbook-core": "^0.0.0" - }, - "devDependencies": { - "classnames": "^2.2.5", - "font-awesome": "^4.6.3", - "gitbook-markdown-css": "^1.0.1", - "gitbook-plugin": "*", - "less": "^2.7.1", - "less-plugin-clean-css": "^1.5.1", - "preboot": "git+https://github.com/mdo/preboot.git#4aab4edd85f076d50609cbe28e4fe66cc0771701" - }, - "scripts": { - "prepublish": "./prepublish.sh" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/gitbook.git" - }, - "author": "GitBook Inc. <contact@gitbook.com>", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - }, - "contributors": [ - { - "name": "Samy Pessé", - "email": "samy@gitbook.com" - } - ], - "gitbook": { - "properties": { - "styles": { - "type": "object", - "title": "Custom Stylesheets", - "properties": { - "website": { - "title": "Stylesheet for website output", - "default": "styles/website.css" - }, - "pdf": { - "title": "Stylesheet for PDF output", - "default": "styles/pdf.css" - }, - "epub": { - "title": "Stylesheet for ePub output", - "default": "styles/epub.css" - }, - "mobi": { - "title": "Stylesheet for Mobi output", - "default": "styles/mobi.css" - }, - "ebook": { - "title": "Stylesheet for ebook outputs (PDF, ePub, Mobi)", - "default": "styles/ebook.css" - }, - "print": { - "title": "Stylesheet to replace default ebook css", - "default": "styles/print.css" - } - } - }, - "showLevel": { - "type": "boolean", - "title": "Show level indicator in TOC", - "default": false + "name": "gitbook-plugin-theme-default", + "description": "Default theme for GitBook", + "main": "./index.js", + "browser": "./_assets/theme.js", + "version": "4.0.0", + "engines": { + "gitbook": ">=3.0.0" + }, + "dependencies": { + "gitbook-core": "4.0.0" + }, + "devDependencies": { + "classnames": "^2.2.5", + "font-awesome": "^4.6.3", + "gitbook-markdown-css": "^1.0.1", + "gitbook-plugin": "4.0.0", + "less": "^2.7.1", + "less-plugin-clean-css": "^1.5.1", + "preboot": "git+https://github.com/mdo/preboot.git#4aab4edd85f076d50609cbe28e4fe66cc0771701" + }, + "scripts": { + "prepublish": "./prepublish.sh" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + }, + "contributors": [ + { + "name": "Samy Pessé", + "email": "samy@gitbook.com" } - } - } -} + ], + "gitbook": { + "properties": { + "styles": { + "type": "object", + "title": "Custom Stylesheets", + "properties": { + "website": { + "title": "Stylesheet for website output", + "default": "styles/website.css" + }, + "pdf": { + "title": "Stylesheet for PDF output", + "default": "styles/pdf.css" + }, + "epub": { + "title": "Stylesheet for ePub output", + "default": "styles/epub.css" + }, + "mobi": { + "title": "Stylesheet for Mobi output", + "default": "styles/mobi.css" + }, + "ebook": { + "title": "Stylesheet for ebook outputs (PDF, ePub, Mobi)", + "default": "styles/ebook.css" + }, + "print": { + "title": "Stylesheet to replace default ebook css", + "default": "styles/print.css" + } + } + }, + "showLevel": { + "type": "boolean", + "title": "Show level indicator in TOC", + "default": false + } + } + } +}
\ No newline at end of file diff --git a/packages/gitbook-plugin/package.json b/packages/gitbook-plugin/package.json index c342eef..64cbf6b 100644 --- a/packages/gitbook-plugin/package.json +++ b/packages/gitbook-plugin/package.json @@ -1,39 +1,39 @@ { - "name": "gitbook-plugin", - "version": "0.0.0", - "description": "CLI for compiling and testing plugins", - "main": "./lib/index.js", - "dependencies": { - "babel-preset-es2015": "^6.14.0", - "babel-preset-react": "^6.11.1", - "babelify": "^7.3.0", - "browserify": "^13.1.0", - "commander": "^2.9.0", - "fs-extra": "^0.30.0", - "inquirer": "^1.1.3", - "q": "^1.4.1", - "winston": "^2.2.0" - }, - "devDependencies": { - "babel-cli": "^6.14.0", - "babel-preset-es2015": "^6.14.0", - "babel-preset-react": "^6.11.1", - "babel-preset-stage-2": "^6.13.0" - }, - "bin": { - "gitbook-plugin": "./lib/cli.js" - }, - "scripts": { - "dist": "rm -rf lib/ && babel -d lib/ src/ && chmod +x ./lib/cli.js", - "prepublish": "npm run dist" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/gitbook.git" - }, - "author": "GitBook Inc. <contact@gitbook.com>", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - } -} + "name": "gitbook-plugin", + "version": "4.0.0", + "description": "CLI for compiling and testing plugins", + "main": "./lib/index.js", + "dependencies": { + "babel-preset-es2015": "^6.14.0", + "babel-preset-react": "^6.11.1", + "babelify": "^7.3.0", + "browserify": "^13.1.0", + "commander": "^2.9.0", + "fs-extra": "^0.30.0", + "inquirer": "^1.1.3", + "q": "^1.4.1", + "winston": "^2.2.0" + }, + "devDependencies": { + "babel-cli": "^6.14.0", + "babel-preset-es2015": "^6.14.0", + "babel-preset-react": "^6.11.1", + "babel-preset-stage-2": "^6.13.0" + }, + "bin": { + "gitbook-plugin": "./lib/cli.js" + }, + "scripts": { + "dist": "rm -rf lib/ && babel -d lib/ src/ && chmod +x ./lib/cli.js", + "prepublish": "npm run dist" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + } +}
\ No newline at end of file diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 12b190a..01fa93e 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -1,110 +1,110 @@ { - "name": "gitbook", - "version": "4.0.0", - "homepage": "https://www.gitbook.com", - "description": "Library and cmd utility to generate GitBooks", - "main": "lib/index.js", - "browser": "./lib/browser.js", - "dependencies": { - "bash-color": "0.0.4", - "cheerio": "0.20.0", - "chokidar": "1.5.0", - "cp": "0.2.0", - "cpr": "1.1.1", - "crc": "3.4.0", - "destroy": "1.0.4", - "direction": "0.1.5", - "dom-serializer": "0.1.0", - "error": "7.0.2", - "escape-html": "^1.0.3", - "escape-string-regexp": "1.0.5", - "extend": "^3.0.0", - "fresh-require": "1.0.3", - "front-matter": "^2.1.0", - "gitbook-asciidoc": "1.2.2", - "gitbook-core": "*", - "gitbook-markdown": "1.3.2", - "gitbook-plugin-headings": "1.0.0", - "gitbook-plugin-highlight": "2.0.2", - "gitbook-plugin-livereload": "0.0.1", - "gitbook-plugin-lunr": "1.2.0", - "gitbook-plugin-search": "2.2.1", - "gitbook-plugin-sharing": "4.0.0", - "gitbook-plugin-theme-default": "1.0.5", - "gitbook-plugin-hints": "2.0.0", - "github-slugid": "1.0.1", - "graceful-fs": "4.1.4", - "i18n-t": "1.0.1", - "ignore": "3.1.2", - "immutable": "^3.8.1", - "is": "^3.1.0", - "js-yaml": "^3.6.1", - "json-schema-defaults": "0.1.1", - "jsonschema": "1.1.0", - "juice": "2.0.0", - "mkdirp": "0.5.1", - "moment": "2.13.0", - "npm": "3.9.2", - "npmi": "2.0.1", - "nunjucks": "2.4.2", - "nunjucks-do": "1.0.0", - "object-path": "^0.9.2", - "omit-keys": "^0.1.0", - "open": "0.0.5", - "q": "1.4.1", - "react": "^15.3.2", - "react-dom": "^15.3.2", - "react-redux": "^4.4.5", - "read-installed": "^4.0.3", - "redux": "^3.5.2", - "request": "2.72.0", - "resolve": "1.1.7", - "rmdir": "1.2.0", - "semver": "5.1.0", - "send": "0.13.2", - "spawn-cmd": "0.0.2", - "tiny-lr": "0.2.1", - "tmp": "0.0.28", - "urijs": "1.18.0" - }, - "scripts": { - "test": "./node_modules/.bin/mocha ./testing/setup.js \"./src/**/*/__tests__/*.js\" --bail --reporter=list --timeout=10000 --compilers js:babel-register", - "dist": "rm -rf lib/ && babel -d lib/ src/ --source-maps --ignore \"**/*/__tests__/*.js\"", - "prepublish": "npm run dist" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/gitbook.git" - }, - "bin": { - "gitbook": "./bin/gitbook.js" - }, - "keywords": [ - "git", - "book", - "gitbook" - ], - "author": "GitBook Inc. <contact@gitbook.com>", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/gitbook/issues" - }, - "contributors": [ - { - "name": "Aaron O'Mullan", - "email": "aaron@gitbook.com" - }, - { - "name": "Samy Pessé", - "email": "samy@gitbook.com" - } - ], - "devDependencies": { - "babel-cli": "^6.14.0", - "babel-preset-es2015": "^6.14.0", - "babel-preset-react": "^6.11.1", - "babel-preset-stage-2": "^6.13.0", - "babel-register": "^6.14.0", - "mocha": "^3.0.2" - } -} + "name": "gitbook", + "version": "4.0.0", + "homepage": "https://www.gitbook.com", + "description": "Library and cmd utility to generate GitBooks", + "main": "lib/index.js", + "browser": "./lib/browser.js", + "dependencies": { + "bash-color": "0.0.4", + "cheerio": "0.20.0", + "chokidar": "1.5.0", + "cp": "0.2.0", + "cpr": "1.1.1", + "crc": "3.4.0", + "destroy": "1.0.4", + "direction": "0.1.5", + "dom-serializer": "0.1.0", + "error": "7.0.2", + "escape-html": "^1.0.3", + "escape-string-regexp": "1.0.5", + "extend": "^3.0.0", + "fresh-require": "1.0.3", + "front-matter": "^2.1.0", + "gitbook-asciidoc": "1.2.2", + "gitbook-core": "4.0.0", + "gitbook-markdown": "1.3.2", + "gitbook-plugin-headings": "4.0.0", + "gitbook-plugin-highlight": "4.0.0", + "gitbook-plugin-livereload": "0.0.1", + "gitbook-plugin-lunr": "4.0.0", + "gitbook-plugin-search": "4.0.0", + "gitbook-plugin-sharing": "4.0.0", + "gitbook-plugin-theme-default": "4.0.0", + "gitbook-plugin-hints": "4.0.0", + "github-slugid": "1.0.1", + "graceful-fs": "4.1.4", + "i18n-t": "1.0.1", + "ignore": "3.1.2", + "immutable": "^3.8.1", + "is": "^3.1.0", + "js-yaml": "^3.6.1", + "json-schema-defaults": "0.1.1", + "jsonschema": "1.1.0", + "juice": "2.0.0", + "mkdirp": "0.5.1", + "moment": "2.13.0", + "npm": "3.9.2", + "npmi": "2.0.1", + "nunjucks": "2.4.2", + "nunjucks-do": "1.0.0", + "object-path": "^0.9.2", + "omit-keys": "^0.1.0", + "open": "0.0.5", + "q": "1.4.1", + "react": "^15.3.2", + "react-dom": "^15.3.2", + "react-redux": "^4.4.5", + "read-installed": "^4.0.3", + "redux": "^3.5.2", + "request": "2.72.0", + "resolve": "1.1.7", + "rmdir": "1.2.0", + "semver": "5.1.0", + "send": "0.13.2", + "spawn-cmd": "0.0.2", + "tiny-lr": "0.2.1", + "tmp": "0.0.28", + "urijs": "1.18.0" + }, + "scripts": { + "test": "./node_modules/.bin/mocha ./testing/setup.js \"./src/**/*/__tests__/*.js\" --bail --reporter=list --timeout=100000 --compilers js:babel-register", + "dist": "rm -rf lib/ && babel -d lib/ src/ --source-maps --ignore \"**/*/__tests__/*.js\"", + "prepublish": "npm run dist" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/gitbook.git" + }, + "bin": { + "gitbook": "./bin/gitbook.js" + }, + "keywords": [ + "git", + "book", + "gitbook" + ], + "author": "GitBook Inc. <contact@gitbook.com>", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/gitbook/issues" + }, + "contributors": [ + { + "name": "Aaron O'Mullan", + "email": "aaron@gitbook.com" + }, + { + "name": "Samy Pessé", + "email": "samy@gitbook.com" + } + ], + "devDependencies": { + "babel-cli": "^6.14.0", + "babel-preset-es2015": "^6.14.0", + "babel-preset-react": "^6.11.1", + "babel-preset-stage-2": "^6.13.0", + "babel-register": "^6.14.0", + "mocha": "^3.0.2" + } +}
\ No newline at end of file diff --git a/scripts/bump.js b/scripts/bump.js new file mode 100755 index 0000000..4f21a3f --- /dev/null +++ b/scripts/bump.js @@ -0,0 +1,36 @@ +#! /usr/bin/env node + +const fs = require('fs'); +const path = require('path'); + +const lernaConfig = require('../lerna.json'); + +// List all the packages +const PACKAGES_DIR = path.resolve(__dirname, '../packages'); +const packages = fs.readdirSync(PACKAGES_DIR); + +function updateDependencies(dependencies) { + Object.keys(dependencies).map((key) => { + if (!packages.includes(key)) { + return; + } + + dependencies[key] = lernaConfig.version; + }); +} + +packages.forEach((name) => { + // Avoid .DS_Store + if (name[0] === '.') { + return; + } + + const pkgPath = path.resolve(PACKAGES_DIR, name, 'package.json'); + const pkg = require(pkgPath); + + pkg.version = lernaConfig.version; + updateDependencies(pkg.dependencies); + updateDependencies(pkg.devDependencies); + + fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 3), 'utf-8'); +}); |