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

Use Bower instead of Git submodules #21

Closed

Conversation

jiehanzheng
Copy link

@jiehanzheng jiehanzheng commented Sep 19, 2016

There are a few advantages of using Bower rather than Git submodules. The most important ones include:

  • Potentially faster when downloading dependencies, and taking up less space on disk (it removes unnecessary files);
  • Ability to specify a version range and receive minor updates without having to explicitly update version number (although this requires semver to work; three.js doesn't use it yet);
  • Handles nested dependencies well. Currently, perhaps to prevent loading jQuery twice, we are using w2ui's included jQuery, and if some day w2ui stops depending on jQuery, we have to set up a jQuery submodule again. Bower solves this by resolving all nested dependencies and flatten them--this way we can correctly specify jQuery as this project's dependency without having to worry about having two copies of jQuery;
  • Most open source front-end projects I've seen use Bower and many front-end devs are probably more comfortable with it than Git submodules.

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

Successfully merging this pull request may close these issues.

None yet

2 participants