Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use Bower for dependency management #475

Closed
passy opened this Issue · 20 comments

6 participants

@passy
Owner

All apps should use bower for dependency management if this is possible and does not interfere with the framework's best practices or their own dependency management.

In particular, every app should have a component.json on the root level and should link to the components/ directory from the index.html. The components/ directory should only contain the needed files, so we don't bloat the repository unnecessarily.

General Tasks

  • Update Spec
  • Remove shared assets
  • Update template

Apps to be updated

  • Backbone.js
  • AngularJS
  • Ember.js
  • KnockoutJS
  • Dojo
  • YUI
  • Agility.js
  • Knockback.js
  • CanJS
  • Maria
  • cujo.js
  • dermis
  • Montage
  • Ext.js
  • Sammy.js
  • Stapes
  • Epitome
  • soma.js
  • DUEL
  • Kendo UI
  • PureMVC
  • Olives
  • PlastronJS
  • Dijon
  • rAppid.js
  • Funnyface.js
  • Knockout + ClassBinding
  • DeftJS + ExtJS
  • Aria Templates
  • AngularJS (optimized)
  • Spine
  • Dart
  • Batman.js
  • GWT
  • TypeScript + Backbone.js
  • TypeScript + AngularJS
  • Closure
  • Serenade.js
  • MarionetteJS
  • Thorax
  • Chaplin + Brunch
  • Backbone.js + RequireJS
  • Ember.js + RequireJS
  • Knockout + RequireJS
  • AngularJS + RequireJS
  • CanJS + RequireJS
  • TroopJS
  • Thorax + Lumbar
  • Flight
  • Meteor
  • Derby
  • SocketStream
  • Vanilla JS
  • jQuery

Pull requests are more than welcome! Please leave a comment before you start working on an app, so we can avoid overlaps.

@paulmillr
Collaborator

Why bower? What if the workflow uses component(1)?

@sindresorhus
Owner

@paulmillr

All apps should use bower for dependency management if this is possible and does not interfere with the framework's best practices or their own dependency management.

@passy
Owner

I made a few updates to the spec. Feel free to make adjustments. I also added a task to update the template.

@passy
Owner

Not ticking CanJS off the list yet, since two of the plugins aren't available as components yet.

@rikkert

Would like to convert the Sammy.js app.
Started work at rikkert/todomvc

@passy
Owner

@rikkert Awesome. Go for it! :)

@sindresorhus

@passy if they use valid semver git tags you can just register them yourself.

bower register name giturl

I did that for a few libs.

@passy
Owner

@sindresorhus I created a repository for the localstorage plugin myself, because I couldn't find a canonical source for that. Looks like it was more like a snippet being copied around all the time. The mustache plugin, however, is part of the official repository but not distributed with their bower package. I'm going to open an issue for that.

For reference: bitovi/canjs#252

@passy passy referenced this issue from a commit
@passy passy spine: Use bower components
Ref #475
c6dfc3f
@addyosmani
Owner

If it would help to ask the community for more help with the conversion effort I'm happy to post about it.

@passy
Owner

@addyosmani That could certainly help.

I tried converting the ember+require app today, but it's still using Ember 0.9.8.1 in a custom build with the router integrated which isn't available on bower. I think the time would be better spent porting it to 1.0rc2 instead of pushing the old releases on bower.

@stephenplusplus

I'm going to give the Sammy.js example a shot. The style appears to be out of date, and the sammy.js library file itself is a couple versions behind. Is it worth the effort of re-styling and upgrading as well?

@passy
Owner

@rikkert Did you make any progress on the sammy.js port?

@addyosmani
Owner

' I think the time would be better spent porting it to 1.0rc2 instead of pushing the old releases on bower' agreed!

@stephenplusplus

@passy I can't believe I missed that @rikkert already claimed it. I definitely remember reading his post, I guess the Sammy.js part didn't stick.

@rikkert
@stephenplusplus

They're all using Bower now :+1:

@passy
Owner

Yay, closing! :cocktail:

@passy passy closed this
@addyosmani
Owner

Well done everyone!

@sindresorhus

@addyosmani we should do the G+ post about it now. Did we have a draft doc?

@addyosmani
Owner
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Backbone app - use Bower components 62b8377
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Agility app - use Bower components 0a70470
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Angular app - use Bower components 25333eb
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Angular perf - use Bower components fd51df2
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Ember app - use Bower components 81cc177
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Knockout app - use Bower components c14e0fb
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@sindresorhus sindresorhus Backbone.Marionette app - use Bower components c457260
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@passy passy Backbone + RequireJS: Use Bower components
Ref #475
a1cd8d4
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@passy passy Angular + Require.js: Use bower components
Ref #475
69923af
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@passy passy CanJS: Partly moved to Bower components
Refs #475
abce701
@gustaff-weldon gustaff-weldon referenced this issue from a commit in gustaff-weldon/todomvc
@passy passy spine: Use bower components
Ref #475
29dc87a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.