Is there a standard way to share HTML/Javascript content over several visual studio projects? (a bit like Prism separates out modules for WPF).
Obviously this provides some issues for HTML apps, particularly in relation to Javascript.
If i was using MVC, i might be able to use this or this, but this project will use a SPA framework (likely to use RequireJs) and I would like to keep things standard.
The general site structures would be as shown below (where 'modules' are specific bits of functionality/views on data):
Site 1
- Module 1
- Module 2
Site 1 (config B)
- Module 1
- Module 4
Site 2
- Module 1
- Module 3
One option would be to include everything in one project with a config to decide what goes where. This could lead to a massive project though.
Another would be to have home baked helpers (as shown in the references) that copy files over from other projects when the project first runs, but this doesn't feel very neat in this instance.
Is there a standard way of achieving this goal?
I have done a lot of research, but cannot find a definitive answer.