-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpaBuild.msbuild
33 lines (28 loc) · 1.17 KB
/
SpaBuild.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Hook into the AfterBuild activity -->
<PropertyGroup>
<BuildDependsOn>
$(BuildDependsOn);
SpaBuild;
SpaBundle
</BuildDependsOn>
</PropertyGroup>
<PropertyGroup>
<RunSpaBuild Condition="'$(RunSpaBuild)'==''">false</RunSpaBuild>
<RunSpaBundle Condition="'$(RunSpaBundle)'==''">false</RunSpaBundle>
</PropertyGroup>
<Target Name="SpaBuild" Condition="$(RunSpaBuild)">
<Message Text="Building the SPA application" />
<Exec Command="attrib -r config.js" WorkingDirectory="." />
<Exec Command="attrib -r package.json" WorkingDirectory="." />
<Exec Command="npm install" WorkingDirectory="." />
<Exec Command="jspm install" WorkingDirectory="." />
<Exec Command="gulp build" WorkingDirectory="." />
</Target>
<Target Name="SpaBundle" Condition="$(RunSpaBundle)">
<Message Text="Bundling the SPA application" />
<Exec Command="attrib -r config.js" WorkingDirectory="." />
<Exec Command="attrib -r package.json" WorkingDirectory="." />
<Exec Command="gulp bundle" WorkingDirectory="." />
</Target>
</Project>