feat(gh-pages): Add gh-pages deploy script
This commit is contained in:
parent
bdac9dd817
commit
ab1a299c54
2 changed files with 11 additions and 1 deletions
|
|
@ -10,7 +10,8 @@
|
||||||
"build": "./scripts/build.sh",
|
"build": "./scripts/build.sh",
|
||||||
"release": "./scripts/release.sh",
|
"release": "./scripts/release.sh",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "npm run lint"
|
"test": "npm run lint",
|
||||||
|
"gh-pages": "./scripts/gh-pages"
|
||||||
},
|
},
|
||||||
"author": "Algolia <support@algolia.com> (https://github.com/algolia/)",
|
"author": "Algolia <support@algolia.com> (https://github.com/algolia/)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
@ -26,6 +27,7 @@
|
||||||
"eslint-config-airbnb": "^0.1.0",
|
"eslint-config-airbnb": "^0.1.0",
|
||||||
"eslint-config-algolia": "^4.2.0",
|
"eslint-config-algolia": "^4.2.0",
|
||||||
"eslint-plugin-react": "^3.5.1",
|
"eslint-plugin-react": "^3.5.1",
|
||||||
|
"gh-pages": "^0.5.0",
|
||||||
"json": "^9.0.3",
|
"json": "^9.0.3",
|
||||||
"mversion": "^1.10.1",
|
"mversion": "^1.10.1",
|
||||||
"npm-shrinkwrap": "^200.4.0",
|
"npm-shrinkwrap": "^200.4.0",
|
||||||
|
|
|
||||||
8
scripts/gh-pages
Executable file
8
scripts/gh-pages
Executable 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
|
||||||
Loading…
Reference in a new issue