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

Why is pho-devstack using the angular bower package over the NPM package? #47

Closed
renestalder opened this issue Jul 8, 2014 · 2 comments

Comments

@renestalder
Copy link

Shouldn't we use the angular NPM module to be able to require angular, angular-route and all other angular components via Browserify? Or what's exactly the deal that the default AngularJS setup in pho devstack uses bower to get angular?

I've read about the most people use the bower package instead of NPM for front-end components, but keeps open how I should implement Angular Addons in my code. Just plain script lines in my footer?

Seems I didn't get the principles of Browserify. Or pho devstack has chosen another way.

@PavelGavlik
Copy link
Collaborator

I would prefer to use npm instead of Bower. It plays well Browserify and it looks like community is starting to use npm also for front-end packages.

The reason why I've not already migrated away from Bower is #3. First builds become significantly slower when AngularJS is required and I don't want to have slow builds...

When #3 is done, I will migrate to npm entirelly.

@renestalder
Copy link
Author

@PavelGavlik Thanks Pavel. I thought there may be more general reasons to use bower over NPM. But it answers my question for pho-devstack.

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

2 participants