Skip to content
Christophe Rosset edited this page Mar 4, 2016 · 12 revisions

Webpack Babel Starter

###Deploy

####Github pages

#####Setup

You only have to do this once to setup your ./build/dist directory as a git folder following the gh-pages branch.

From the root of your project:

npm run build
npm run clean-dist
cd build/dist
git clone https://github.com/username/awesome-repository-name.git ./
git checkout --orphan gh-pages
cd ../..

#####Deploy

From the root of your project:

npm run build-prod
cd build/dist
git add .
git commit -m "new version"
git push -u origin gh-pages
cd ../..

Your distribution version will be versionned in the gh-pages branch like this and made available on your github pages.

Clone this wiki locally