You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade to backbone 0.9.1 and underscore 1.3.1 #43
Hi - we've just put a few hours into upgrading our forked copy of bones to work with backbone 0.9.1 (latest) and underscore 1.3.1.
I'll attempt to add a patch to this comment, but the highlights follow below:
Obviously the versions need to be bumped in Package.json
"underscore": "1.1.x",
"underscore": "1.3.x",
"express": "2.4.4",
"backbone": "0.5.1",
"backbone": "0.9.1",
in bones.js, set the server side jquery library into the imported backbone. Backbone now requires $ to be set, and the previous version was not loading it.
In plugin.js around lines 56/55 templates must now be passed to the client as a variable, as they're hidden using closure in the new _.template method.
content: 'template = ' + module.exports + ';'
// client must now pass escaped template content over, as _ makes it a hidden closure var
There are some changes to the example app that need to be made to work with these, but these 3 items are the show stoppers and only changes to the bones project core that we needed to make things work again. We made changes in our own app rather than updating the example, so unfortunately I can't share those, but the above should work as a leg up for anyone starting to upgrade the backbone version.
I'm really glad my patches have found some use. I'm not actively working
with bones now. I like the project and it seems pretty solid, but there's
some complexity and a harsh learning curve hit when using it outside
devseed. Our team kept finding that we were having to choose older node or
npm dependencies or spend time going through bones itself to make it do
what we wanted, which made it a framework that swallowed time.
Documentation, development momentum and project team around the project
made it feel like a devseed internal project that happened to be open
source, rather than a project with an active community and projects using
it outside devseed.
We ended up rolling several of the concepts we needed for
backbone.js<->node.js integration into our own express based project and
learnt a lot from bones while we were using it, so definitely got some
value from it! I'll keep an eye on the project now you're making things
happen and may give it another shot in the future.
Activity
asparagino commentedon Feb 7, 2012
makara commentedon May 10, 2012
For upgrading to underscore 1.3.x, I think you just need the compiled template source, as in the commit:
Wiredcraft@3882521
Again, please consider #51 so I can send pull requests. The master branch doesn't work at the moment.
AdrianRossouw commentedon May 15, 2012
This is my commit to upgrade to backbone 0.9.2 , on top of @makara's fix. It was based on @asparagino's fix.
ONCHoldings@732b1b8
asparagino commentedon May 15, 2012
Hi Adrian,
I'm really glad my patches have found some use. I'm not actively working
with bones now. I like the project and it seems pretty solid, but there's
some complexity and a harsh learning curve hit when using it outside
devseed. Our team kept finding that we were having to choose older node or
npm dependencies or spend time going through bones itself to make it do
what we wanted, which made it a framework that swallowed time.
Documentation, development momentum and project team around the project
made it feel like a devseed internal project that happened to be open
source, rather than a project with an active community and projects using
it outside devseed.
We ended up rolling several of the concepts we needed for
backbone.js<->node.js integration into our own express based project and
learnt a lot from bones while we were using it, so definitely got some
value from it! I'll keep an eye on the project now you're making things
happen and may give it another shot in the future.
On Mon, May 14, 2012 at 5:48 PM, Adrian Rossouw <
reply@reply.github.com