SPA Module¶
Warning
The usage of this module for a Microservices architecture is discouraged. If you think you need this module, contact the Suite Team.
The SpaModule supports serving web frontends inside the ASP.NET Pipeline.
The web resources are included as embedded resources in your module's assembly. The SpaModule includes support for building your web frontend together with your module through MSBuild.
Build target¶
If you'd like to auto build the frontend together with your module, you'll need
to add the SpaModule targets file to your .csproj
file, the reason being that
we are not using NuGet packages.
RunSpaTarget
will run the build of the spa and copy the artifacts.AngularPath
The path where your angular project is located, it is used to run the builds.SpaArtifactsPath
The folder where you Spas applications are located.BuildScript
This script will run on the specifiedAngularPath
.RunSpaBuild
If true, the spa module target will run the build inside the configuredAngularPath
.RunArtifactsCopy
If true, the target will add as embedded resources all the files contained inside theSpaArtifactsPath
.
Info
The embedded resources will be embedded in the path: [moduleName].spa.[containerFolderOfYourSpa]
Configure the SpaModule
¶
To install the SpaModule, you simply depend on the SpaModule
and configure it,
like so:
Tip
Use a dedicated project uniquely for this deployment scenario in order to prevent duplicate builds.