diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-05-26 10:48:43 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-05-26 10:48:43 +0200 |
| commit | 5ced7f916d94e86e9a7ec164bee56f9a8e3a2a3a (patch) | |
| tree | b1ef5afa17b4a2f9fb2cbd683afc2fb6d905b5e1 /src/frontend/frontend.esproj | |
| parent | 4637373b50636e78dc2c7b6f99be879edb4ff7dc (diff) | |
Replace Azure SWA with custom server
Diffstat (limited to 'src/frontend/frontend.esproj')
| -rw-r--r-- | src/frontend/frontend.esproj | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/frontend/frontend.esproj b/src/frontend/frontend.esproj new file mode 100644 index 0000000..1afb3fb --- /dev/null +++ b/src/frontend/frontend.esproj @@ -0,0 +1,22 @@ +<Project Sdk="Microsoft.VisualStudio.JavaScript.SDK/1.0.2655793"> + <PropertyGroup> + <StartupCommand>npm run dev</StartupCommand> + <BuildCommand>npm run build</BuildCommand> + <BuildOutputFolder>$(MSBuildProjectDirectory)\build</BuildOutputFolder> + </PropertyGroup> + + <Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') "> + <Exec Command="node --version" ContinueOnError="true"> + <Output TaskParameter="ExitCode" PropertyName="ErrorCode" /> + </Exec> + <Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." /> + <Message Importance="high" Text="Restoring dependencies using 'npm'. This may take some time..." /> + <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> + </Target> + + <Target Name="PublishRunVite" AfterTargets="ComputeFilesToPublish"> + <Exec WorkingDirectory="$(SpaRoot)" Command="npm install" /> + <Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" /> + </Target> +</Project> + |
