Typescript tutorial to create ASP.Net Core application (with or without Angular 2) suggests that we create a folder Scripts and use gulp task to copy only the .js files to wwwroot folder, e.g. during the build.
Now that makes sense, but what do we do with all the .html, .css, etc. files that angular 2 can utilize. It seems that there are generally two way of doing it:
Adding them to
wwwrootfolder.Benefits: no need to add gulp task for these static files
Drawbacks: we'll have to duplicate the folder structure and do operations of copy/rename/etc twice
Keeping them in the
Scriptsfolder outside ofwwwroot(then we'd better rename it toSourceor something like that.Benefits: no duplication, all in one place
Drawbacks: we'll have to copy them to
wwwrootin gulp task
In case 2 wwwroot becomes like a bin folder for ordinary application.
Are there any official guidelines/advices on the topic (I was not able to find any) that I can use as a reference?