aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/frontend.esproj
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/frontend.esproj')
-rw-r--r--src/frontend/frontend.esproj22
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>
+