Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gh-pages npm library #73

Open
dereklieu opened this issue Sep 12, 2018 · 3 comments
Open

Use gh-pages npm library #73

dereklieu opened this issue Sep 12, 2018 · 3 comments

Comments

@dereklieu
Copy link
Contributor

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
Copy link
Contributor Author

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

@danielfdsilva
Copy link
Member

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants