Currently I'm working on a big project which tends to have about 10000 javascript and cshtml files.
It's a good idea to have a shell project, and lots of business projects like:
MyCompany.Shell
MyCompany.BusinessDomain1
MyCompany.BusinessDomain2
in this way, MyCompany.Shell
is a Web project, and the others are Class Libraries
.
How can I configure my Solution
, TeamProject
and MyCompany.Shell
to use the JavaScript files which are spread over the Business
projects.
FYI, I'm using HotTowel
template and Durandal 2.0.1
If you're using MVC to generate the views, there's not really a way to do that, because you'd have different web sites. Unless you deploy them into virtual directories, durandal can't get to the views. If you are deploying them into virtual directories then you just have to ensure that the paths to your views and viewmodels are correct at runtime.
Apart from that here are a few tips that maybe useful: