slara / generator-reveal

Yeoman generator for Reveal.js
MIT License
429 stars 52 forks source link

Update gitignore for dist to gh pages #37

Closed dunckr closed 10 years ago

dunckr commented 10 years ago

When you build to the dist folder then push to gh pages the bower components will not be included as they are being ignored.

If we only ignore the root bower components then the dist copy of the bower components will be included and the github pages will work correctly.

The root bower components will still be excluded and have to npm i as usual.

janraasch commented 10 years ago

Not sure how this helps, since it seems like we ignore the whole dist directory. Actually what you could do is git-add the generated dist-files to the gh-pages branch (maybe even move them to / on that branch as there is no need to have them in dist on that branch), and then push the gh-pages branch.

See e.g. https://github.com/yeoman/yeoman/wiki/Deployment for detailed instructions.

Actually, let us just solve this once and for all with #39, since this is obviously a very common use-case.