-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.esproj
22 lines (22 loc) · 1.24 KB
/
manager.esproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.7-alpha">
<PropertyGroup Label="Globals">
<ProjectGuid>c89b83fd-4e9f-4092-9627-8220c63a0347</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<StartupCommand>npm start</StartupCommand>
<JavaScriptTestFramework>Jasmine</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>