Deployment to GitHub Pages
In order to provide a better DX, sticking to create-react-app's core ideas, I suggest replacing the manual steps of GitHub Pages deploy (the user has to setup a script himself?) with tools or setups like gh-pages.
Do you see any drawback for this?
I could take a look at it or let @tschaub take the honor.
Happy to review a PR doing this!
@gesposito @gaearon how about something more minimal like: https://github.com/X1011/git-directory-deploy It's just a single shell script with no dependencies.
If we use something it must work good on Windows.
Hi @gaearon. Probably we can use gh-pages package and create additional npm script, e.g. npm run deploy. Instead of using commandline interface of this package. From my point of view еhis gives us the ability to control output and error handling
We might be able to take advantage of this: https://github.com/blog/2228-simpler-github-pages-publishing
I feel that this is out of scope, especially now that it’s so simple to deploy to GH pages with /docs folder.
Gh-pages deployment would be much easier if there was a way to change the build output path from /static/foo.css to static/foo.css to make it work on gh-pages, without doing it manually.
That way I can deploy just be doing rm -rf build && git checkout gh-pages && git merge master && npm run build && git add build/* -f && git commit -a -m "build files" && git push origin gh-pages && git checkout master