1
0
Fork 0

feat(gh-pages): Add gh-pages deploy script

This commit is contained in:
Pixelastic 2015-11-26 16:31:20 +01:00
parent bdac9dd817
commit ab1a299c54
2 changed files with 11 additions and 1 deletions

View file

@ -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 <support@algolia.com> (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",

8
scripts/gh-pages Executable file
View file

@ -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