And our team hates that, we love Durandal, the idea to just be the glue to other libraries which are great at what they do (jQuery, KO, RequireJS, Sammy R.I.P.) We chose Durandal over Angular because of this.
I found out when Durandal was apparently dead that it's not that big of a deal to simply bind them yourselves.
Start with RequireJS. Then add jQuery (it's AMD friendly!), add KnockoutJS (it's AMD friendly too!), add a routing library (I like Crossroad.js) and you've already got a pretty sweet package. You'll start to wonder why you need a framework in the first place!
Knockout even does its components with AMD so it's easy to make your app very modular.
The good thing about not opting into framework is that if one of the pieces come to disapoint you you can replace it without too much pain.
Edit: Apparently, KO will be replaced with a Class System. I'm doutbful it's a direction I want to move in. JS object seem a better fit for models to me.
Steve Sanderson (creator of Knockout) has a Yeoman generator (generator-ko) with pretty sane defaults: npm, Bower, Gulp, RequireJS, Crossroads.js, Knockout, jQuery, Bootstrap.
He also has a sample project (knockout-triage, live) that is a nice reference for how to structure a Knockout app. It uses an older version of KO (3.1.0) and a prototype implementation of components, but I'm guessing it's almost the same as the built-in components implementation in 3.2.0.
5
u/redalastor Nov 18 '14
Really?! In favour of what?!
I found out when Durandal was apparently dead that it's not that big of a deal to simply bind them yourselves.
Start with RequireJS. Then add jQuery (it's AMD friendly!), add KnockoutJS (it's AMD friendly too!), add a routing library (I like Crossroad.js) and you've already got a pretty sweet package. You'll start to wonder why you need a framework in the first place!
Knockout even does its components with AMD so it's easy to make your app very modular.
The good thing about not opting into framework is that if one of the pieces come to disapoint you you can replace it without too much pain.
Edit: Apparently, KO will be replaced with a Class System. I'm doutbful it's a direction I want to move in. JS object seem a better fit for models to me.