Dear fellow open sorcerers,
I want to host a site on GitHub pages that shows examples of a JavaScript library I'm working on. The examples should of course use the latest version of the library.
For index.html to be able to use the library, I need to ship something like mylib.dist.js, just as I would on any site.
My question is, is there a way of doing this without checking mylib.dist.js into the repository? Is it best practise to have gh-pages be completely different from master and contain all kinds of compiled output?
A solution would be something like start scripts, configured in some file, kinda like how Heroku's Procfile works. However, I haven't found any docs on such a feature on GitHub.
For others that are as (perhaps irrationally) reluctant as me to source control dist bundles, do you have good alternatives?
<script>tag. The links surfaced on the release page are simply download links. – Alexander Wallin Jan 13 '17 at 15:32.jsfile I added as a binary in this fiddle: https://jsfiddle.net/0udg0d2c/. What happens when you refer to the URL in a script tag? Or are you not seeing a link directly to the JS file in your release (e.g., it's only in a zip archive or something)? – apsillers Jan 13 '17 at 17:14