developmentseed / project-seed

A basic starting point for projects.
MIT License
20 stars 12 forks source link

Use gh-pages npm library #73

Open dereklieu opened 5 years ago

dereklieu commented 5 years ago

This repo has some boilerplate code to deploy to gh-pages, which makes sense as a lot of our projects are deployed that way.

There is now the nifty gh-pages npm library that does this for you in a better interface, ie something you can drive from package.json (yarn deploy). I recommend replacing the CI code with this.

https://www.npmjs.com/package/gh-pages

cc @danielfdsilva

dereklieu commented 5 years ago

See this commit for how it's used in the global nightlights work.

danielfdsilva commented 5 years ago

This is very interesting, however in our react projects we also started using browser history with push state, which is not yet compatible with gh-pages. For that we've been using surge.sh in a lot of projects. Any way to circumvent this github limitation?

dereklieu commented 5 years ago

Ah good point, no there's no way to circumvent github's hosting on browser history as far as I know.