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

What is the value of using this project vs using bower directly? #52

Open
chrisbarry opened this issue Jul 16, 2015 · 5 comments
Open

Comments

@chrisbarry
Copy link

Sorry if this is a stupid question, but what is the value of using this project, vs just using bower directly, say from inside the /static folder?

@cailloumajor
Copy link

+1

@pydolan
Copy link

pydolan commented Aug 19, 2015

The main advantage I see is that django-bower works seamlessly with collectstatic; thus, if you run manage.py bower_install before running manage.py collectstatic, your bower packages are automatically collected for serving, which in turn also allows easy uploading to other storage engines via django-storages (e.g., AWS's CDN).

One other small advantage I see is that you get to define your bower packages in your settings.py file, whereas with using bower directly (which I haven't used), I understand that you use a bower.json file.

@chrisbarry
Copy link
Author

Sure, but that is a fairly small benefit vs wrapping something up inside another API, which then will lead to delays in updating (presumably?) Also, it's probably good for people to know how to interact directly with bower, given the amount of tools that are (not always for the best reasons) written in node.

@pydolan
Copy link

pydolan commented Aug 21, 2015

You raise a good point. I think django-bower won't be for everyone, but for those that like the integration with django, django-bower does a good job -- for the reason I described above. However, I've personally decided to forgo it in favor of a direct bower run, mainly to just decouple my front- and back-end management. Collect-static will still work since I added my bower-components directory to my static-dirs list.

@azmeuk
Copy link

azmeuk commented Oct 29, 2015

It would be a benefit if bower install was automatically ran with manage.py collectstatic

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

4 participants