crossroads.js icon indicating copy to clipboard operation
crossroads.js copied to clipboard

Create bower.js

Open tibbon opened this issue 11 years ago • 8 comments

Created to work with bower and wiredep.

tibbon avatar Oct 27 '14 15:10 tibbon

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

sompylasar avatar Oct 27 '14 16:10 sompylasar

Doh! Good point. Updating that now.

tibbon avatar Oct 28 '14 13:10 tibbon

+1

stephen-hill avatar Jul 13 '15 23:07 stephen-hill

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

nathanboktae avatar Jul 25 '15 00:07 nathanboktae

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.

millermedeiros avatar Jul 27 '15 19:07 millermedeiros

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.

nathanboktae avatar Jul 27 '15 20:07 nathanboktae

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

kennethjor avatar Sep 15 '15 14:09 kennethjor

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.

nathanboktae avatar Sep 15 '15 15:09 nathanboktae