millermedeiros / crossroads.js

JavaScript Routes
http://millermedeiros.github.com/crossroads.js/
1.44k stars 156 forks source link

Create bower.js #115

Closed tibbon closed 1 month ago

tibbon commented 10 years ago

Created to work with bower and wiredep.

sompylasar commented 10 years ago

The Bower manifest file should be bower.json, not bower.js

tibbon commented 10 years ago

Doh! Good point. Updating that now.

stephen-hill commented 9 years ago

+1

nathanboktae commented 9 years ago

@millermedeiros Any reason not to take this? Bower is quite popular....

millermedeiros commented 9 years ago

at the time bower was still in flux and I didn't want to maintain multiple *.json files.. (harder to update/release new versions..) specially since this file was linked to a specific commit hash.

for some weird reason I was not getting any email notifications for this project, so I missed most of the bug reports/PRs..

if we add the bower.json now would it work with all releases? (eg. v0.11.0, v0.12.0, v0.12.1) since the old tags won't have a matching bower.json file..

for my own projects I'm basically using npm, volo or basic shell scripts to manage the dependencies..

since I'm not using crossroads on any project at the moment (working mostly on Firefox OS for the past year and half..) I shifted my focus to other libraries/tasks... that's why things are moving slowly here.

nathanboktae commented 9 years ago

Actually I noticed you're already in bower... someone perhaps registered you already? And since you're already tagging repo, you're good. this is a one time thing.

Actually this bower.json shouldn't have the version... not sure why. So yes adding a bower.json is a one time thing unless your dependencies change. See angular-ui-router 's bower.json for an example. I can submit a PR with a cleaner bower.json.

kennethjor commented 9 years ago

Currently having trouble using Crossroads for a new project because there is no bower.json. Would love to see this PR get accepted.

nathanboktae commented 9 years ago

Given how Miller is very busy, for those of you considering router options still, look at Cherrytree - it is actively maintained hierarchal router with a super clean, simple API - map to define routes, use to add middleware, generate to get a link. That's it. No dependencies, uses Promises instead of a custom pub-sub library.