mozilla / mofo-bootstrap

Mozilla Foundation's Bootstrap 4 theme.
https://mozilla.github.io/mofo-bootstrap/demo/
Mozilla Public License 2.0
61 stars 13 forks source link

Add this to bower registry #105

Closed comzeradd closed 5 years ago

comzeradd commented 7 years ago

It would be nice if this was included at Bower as well. This would make it easier for non-node projects to include and use the theme as part of their frontend dependencies workflow.

alanmoo commented 7 years ago

A project doesn't have to be node-based to use npm. Since Bower is installed by npm, that means you have npm installed already and could directly use it. What's the benefit of using Bower instead of npm for dependency management these days?

comzeradd commented 7 years ago

In theory you can use npm for frontend dependencies, but it's not optimal. You'll see even node projects that use both tools to separate backend and frontend libraries. The reason is that bower is tailored for frontend dependencies specifically and is optimized around this use case (eg. more lightweight, flat dependencies resolving).

I understand if this is not a priority. I was just curious if it's has been considered. It would be easier for non-node projects (eg. django, flask) that want to use this theme to include it to their existing workflow.

alanmoo commented 7 years ago

I'm not opposed to this, but I'm also not convinced it's necessary. If anything, perhaps our single Bootstrap dependency can be moved to devDependencies so it is indeed flat. If @gvn's good with it, I'd say we'd accept a PR for Bower support.

Assigned to him for comment.

gvn commented 7 years ago

Hi @comzeradd. Thanks for your thoughts. Since this is a library intended for internal Mozilla Foundation development and we don't use Bower, I don't feel like we should add it to the registry. That signals an intent that we will always ensure Bower compatibility, which isn't the case. It also signals that it's intended for general usage for non-Mozilla work, which is also false.

alanmoo commented 7 years ago

He is referring to Mozilla work, though good point about it being in the registry.