From ab1a299c54a21dfee5630b7878d51856f9c6bf47 Mon Sep 17 00:00:00 2001 From: Pixelastic Date: Thu, 26 Nov 2015 16:31:20 +0100 Subject: [PATCH] feat(gh-pages): Add gh-pages deploy script --- package.json | 4 +++- scripts/gh-pages | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 scripts/gh-pages diff --git a/package.json b/package.json index 853e1c95e..a6cf730be 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build": "./scripts/build.sh", "release": "./scripts/release.sh", "lint": "eslint .", - "test": "npm run lint" + "test": "npm run lint", + "gh-pages": "./scripts/gh-pages" }, "author": "Algolia (https://github.com/algolia/)", "license": "MIT", @@ -26,6 +27,7 @@ "eslint-config-airbnb": "^0.1.0", "eslint-config-algolia": "^4.2.0", "eslint-plugin-react": "^3.5.1", + "gh-pages": "^0.5.0", "json": "^9.0.3", "mversion": "^1.10.1", "npm-shrinkwrap": "^200.4.0", diff --git a/scripts/gh-pages b/scripts/gh-pages new file mode 100755 index 000000000..0f9fe4f15 --- /dev/null +++ b/scripts/gh-pages @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +rm -rf node_modules/gh-pages/.cache + +cd ./docs +bundle install +bundle exec jekyll build +gh-pages --dist docs/_site --branch gh-pages