You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's magical because it a) uses package.json to hold the parameters, and b) manages to update the github pages branch without altering the current branch or copying any of the files in the project directory or the dist directory. (I may or may not have spent a few mythical man days of my life learning to bend git to my will while building a CI system...)
I was thinking, I could re-write the shell script in Node to remove the Bash dependency. And with some heuristics, I could probably automatically figure out which branch (gh-pages, master, or docs) and repo (either repository.url in package.json, or inferred from homepage in package.json if homepage contains 'github.io'?) to push to, so it could be zero configuration. Would you be interested in including this? I was thinking of just jus, but come to think of it I could make it a regular npm module. But the gist of it is, I'd like "deploy" to be as drop-dead simple as "serve" and "build". Everyone should be able to publish to gh-pages without complex configuring.
The text was updated successfully, but these errors were encountered:
I may or may not have spent a few mythical man days of my life learning to bend git to my will while building a CI system
Ha!
Would you be interested in including this?
Yes. I love the concept. I am not especially happy with the current state of the art. That problem of mucking with the git history is precisely why I've been using surge.sh instead of GitHub Pages.
Just to update this issue and bring it to a close -- shortly after reading your comment I tried surge for the first time, and I promptly quit using GitHub Pages. 😆 For new projects I have started using either surge or now.
I see in the documentation http://jus.js.org/#deployment-to-github-pages you've got:
I cooked up something similar for my website, but tried to make it slightly more magical:
It's magical because it a) uses package.json to hold the parameters, and b) manages to update the github pages branch without altering the current branch or copying any of the files in the project directory or the
dist
directory. (I may or may not have spent a few mythical man days of my life learning to bend git to my will while building a CI system...)I was thinking, I could re-write the shell script in Node to remove the Bash dependency. And with some heuristics, I could probably automatically figure out which branch (gh-pages, master, or docs) and repo (either repository.url in package.json, or inferred from homepage in package.json if homepage contains 'github.io'?) to push to, so it could be zero configuration. Would you be interested in including this? I was thinking of just jus, but come to think of it I could make it a regular npm module. But the gist of it is, I'd like "deploy" to be as drop-dead simple as "serve" and "build". Everyone should be able to publish to gh-pages without complex configuring.
The text was updated successfully, but these errors were encountered: