23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.7-alpha">
|
|
<PropertyGroup Label="Globals">
|
|
<ProjectGuid>36c7dc67-6483-4b19-8083-4ec67c5b725a</ProjectGuid>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<StartupCommand>set BROWSER=none&&npm start</StartupCommand>
|
|
<JavaScriptTestRoot>src\</JavaScriptTestRoot>
|
|
<JavaScriptTestFramework>Jest</JavaScriptTestFramework>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Script Include="**" Exclude="*.esproj;**\node_modules\**" />
|
|
</ItemGroup>
|
|
<!-- This target is copied from the ASP.NET SPA template in order to ensure node_modules are in place. -->
|
|
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
|
|
<!-- Ensure Node.js is installed -->
|
|
<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 several minutes..." />
|
|
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
|
|
</Target>
|
|
</Project> |