Is there a way to make GitHub Pages download bower dependencies?

Hubert Grzeskowiak

I have a HTML page in a GitHub repo, which I would like to serve using GitHub Pages. The page depends on some 3rd party libs which are noted as bower dependencies. Is there a way to make GH Pages resolve bower dependencies? I'd prefer to not commit all the files.

Polygnome

No. It runs Jekyll, and only Jekyll, and only supports the plugins contained in the gh-pages gem. Bower is run on node.js. So the only way to do this is to resolve the dependencies locally, commit everything and then push.

In order to keep your branches somewhat clean, you could use a source (or whatver name you prefer) branch which only contains the needed sources and make your changes there. Once you have done your changes, merge the source branch into master, then resolve the dependencies again (if you changed them, or updates are available), commit and push the master branch.

This leaves you with a quite clean source branch, but also has all dependencies in you need resolved in the master branch.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Badge for bower dependencies on github

How to make customizable download URLs on GitHub pages?

Download Buttons for Github Pages

How to use Github Pages with Dependencies?

Github-pages: download release

Is there a way to search github wiki pages?

Make Github pages case insensitive?

Fastest way to download a GitHub project

Shortest way to download from GitHub

Is there a way to remove bower dependencies using ember-cli

Github pages makes download markdown files

How to download pages that end in a certain way with httrack?

How to make Intellij follow sbt GitHub dependencies?

Is there a way to disable SSL/TLS for GitHub Pages?

What is correct way to include images on GitHub Pages?

How to make "spoiler" text in github wiki pages?

How to make WolframAlpha Request on static Github Pages?

How to make changes in the react webpage in github pages?

How to deploy to GitHub pages with Web Components Dependencies in Node Modules

Bower and devDependencies vs dependencies

Gulp, Wiredep and Bower dependencies

Bower dependencies for acceptance testing

Is there a way to download an artifact from the latest release on GitHub?

Will changing my GitHub username make websites hosted on GitHub Pages inaccessible?

requirejs + bower, paths and dependencies within bower components

bower-download the github-forked version, how do I commit modification to the forked repo?

When installing a bower package, what is the correct way to install it's node dependencies for use with browserify?

How to make gradle download dependencies without actually building things

Is there a way to make Maven download snapshot versions automatically?