I want to start playing with Aurelia and MVC 6 Web API with Visual Studio 2015 RC, and I'm using OdeToCode's blog post as a starting point.
I understand the idea behind the new wwwroot
folder, but I'm basically confused as to what should or shouldn't put in there.
My initial thought would to install all jspm
packages as well as the actual JavaScript source files outside the wwwroot
folder, and then copy with gulp
everything that's necessary for running while developing or bundle and copy when deploying.
It would look something like this:
But then again, should I place index.html
also in the src
folder? and config.js
? Or am I actually making my life difficult for myself and should just develop from within the wwwroot
folder?
It's the jspm
packages that confuse me; it feels wrong to have such a large amount of JavaScript files in the wwwroot
when I plan on bundling and minifying anyway.
In short: What would be the preferred folder structure for an Aurelia ASP.NET 5 app in Visual Studio 2015?
I spent quite some time on this and finally settled on:
This approch gave me the following benefits:
The drawbacks of this approach:
gulp watch
. This is not too big of a deal because you can mostly leave gulp watch
running the entire time you develop.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With