Using Grunt with DurandalJs/RequireJs

One of the things I have quickly learned when using DurandalJS is that most often when learning about how to do things within Durandal, the real answer is to look into either KnockoutJS or into RequireJS.

In my last project we used DurandalJS and I was very pleased. However, the one piece I wasn’t very satisfied with was using Weyland. Since I was unable to use server side bundling, I need some solutions.

When I started, I was looking for some help on this, and now that I have a solution in place, I wanted to share back what approach I took and what worked well for me.

I have created a gist that highlights the Gruntfile and the packages I used.   Additionally it includes the optional Visual Studio ‘post-build’ code that was used:

https://gist.github.com/sgentile/11254289

I hope this helps others out there as well!

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s