1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

Add npm install call if node_modules doesn't exist

This commit is contained in:
Starbeamrainbowlabs 2017-11-14 18:43:09 +00:00
parent 1ba7c3650f
commit cb804b960d

View file

@ -31,11 +31,11 @@
</PropertyGroup>
<!-- References -->
<ItemGroup>
<Reference Include="System"/>
<Reference Include="System" />
<Reference Include="MimeSharp">
<HintPath>..\packages\MimeSharp.1.0.0\lib\MimeSharp.dll</HintPath>
</Reference>
<Reference Include="System.Drawing"/>
<Reference Include="System.Drawing" />
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Package>monodevelop</Package>
@ -55,18 +55,21 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild">
<Exec IgnoreExitCode="true" WorkingDirectory="$(SolutionDir)" Command="git submodule update --init"/>
<Exec IgnoreExitCode="true" WorkingDirectory="$(SolutionDir)" Command="git submodule update --init" />
<MakeDir Directories="$(ProjectDir)/obj/client_dist" />
<Message Importance="high" Text="------[ Gliding Squirrel ]------"/>
<MSBuild Projects="$(ProjectDir)/lib/GlidingSquirrel/GlidingSquirrel/GlidingSquirrel.csproj" Properties="Configuration=$(Configuration)"/>
<Message Importance="high" Text="----------[ npm build ]----------"/>
<Exec WorkingDirectory="$(ProjectDir)/ClientFiles" Command="npm run build"/>
<Message Importance="high" Text="------[ Gliding Squirrel ]------" />
<MSBuild Projects="$(ProjectDir)/lib/GlidingSquirrel/GlidingSquirrel/GlidingSquirrel.csproj" Properties="Configuration=$(Configuration)" />
<Message Importance="high" Text="----------[ npm build ]----------" />
<Message Importance="high" Text="---[ additional client files ]---"/>
<Exec WorkingDirectory="$(ProjectDir)/ClientFiles" Condition="!Exists('node_modules/')" Command="npm install" />
<Exec WorkingDirectory="$(ProjectDir)/ClientFiles" Command="npm run build" />
<Message Importance="high" Text="---[ additional client files ]---" />
<CreateItem Include="$(ProjectDir)/ClientFiles/**/*.html;$(ProjectDir)/ClientFiles/**/*.css;$(ProjectDir)/ClientFiles/**/*.svg;$(ProjectDir)/ClientFiles/**/*.png;$(ProjectDir)/ClientFiles/**/*.ico" Exclude="$(ProjectDir)/ClientFiles/node_modules/**/*.*">
<Output TaskParameter="Include" ItemName="StaticClientFiles" />
@ -74,66 +77,66 @@
<Copy SourceFiles="@(StaticClientFiles)" DestinationFolder="$(ProjectDir)/obj/client_dist/%(RecursiveDir)" />
<Message Importance="high" Text="Generating embedded resource directives"/>
<Message Importance="high" Text="Generating embedded resource directives" />
<CreateItem Include="$(ProjectDir)/obj/client_dist/**/*.*">
<Output ItemName="EmbeddedResource" TaskParameter="Include"/>
<Output ItemName="EmbeddedResource" TaskParameter="Include" />
</CreateItem>
</Target>
<ItemGroup>
<Compile Include="Program.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/>
<Compile Include="RippleSpace\Plane.cs"/>
<Compile Include="RippleSpace\Chunk.cs"/>
<Compile Include="RippleSpace\LocationReference.cs"/>
<Compile Include="RippleSpace\ChunkReference.cs"/>
<Compile Include="RippleSpace\DrawnLine.cs"/>
<Compile Include="RippleSpace\Reference.cs"/>
<Compile Include="NibriboardServer.cs"/>
<Compile Include="Log.cs"/>
<Compile Include="Utilities\EmbeddedFiles.cs"/>
<Compile Include="Env.cs"/>
<Compile Include="RippleSpace\RippleSpaceManager.cs"/>
<Compile Include="Client\NibriClient.cs"/>
<Compile Include="Client\ClientSettings.cs"/>
<Compile Include="Utilities\PointExtensions.cs"/>
<Compile Include="Utilities\JsonUtilities.cs"/>
<Compile Include="Client\Messages\Message.cs"/>
<Compile Include="Client\Messages\HandshakeRequestMessage.cs"/>
<Compile Include="Client\Messages\CursorPositionMessage.cs"/>
<Compile Include="RippleSpace\ClientState.cs"/>
<Compile Include="Utilities\Rectangle.cs"/>
<Compile Include="Utilities\Vector2.cs"/>
<Compile Include="Client\Messages\ClientStatesMessage.cs"/>
<Compile Include="Utilities\ColourHSL.cs"/>
<Compile Include="Utilities\ToStringJsonConverter.cs"/>
<Compile Include="Client\Messages\HandshakeResponseMessage.cs"/>
<Compile Include="Client\Messages\ShutdownMessage.cs"/>
<Compile Include="Client\Messages\IdleDisconnectMessage.cs"/>
<Compile Include="Client\Messages\HeartbeatMessage.cs"/>
<Compile Include="Client\Messages\ChunkUpdateMessage.cs"/>
<Compile Include="Client\Messages\PlaneChangeMessage.cs"/>
<Compile Include="Client\Messages\ExceptionMessage.cs"/>
<Compile Include="Utilities\ChunkTools.cs"/>
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs"/>
<Compile Include="Client\ChunkCache.cs"/>
<Compile Include="Client\Messages\LinePartMessage.cs"/>
<Compile Include="Client\LineIncubator.cs"/>
<Compile Include="Client\Messages\LineCompleteMessage.cs"/>
<Compile Include="Client\Messages\ErrorMessage.cs"/>
<Compile Include="Client\Messages\PlaneChangeOkMessage.cs"/>
<Compile Include="Client\RawChunkReference.cs"/>
<Compile Include="Client\Messages\LinePartReflectionMessage.cs"/>
<Compile Include="Client\Messages\LineCompleteReflectionMessage.cs"/>
<Compile Include="Client\Messages\LineStartMessage.cs"/>
<Compile Include="Client\Messages\LineStartReflectionMessage.cs"/>
<Compile Include="Utilities\CalcPaths.cs"/>
<Compile Include="RippleSpace\PlaneInfo.cs"/>
<Compile Include="Utilities\BinaryIO.cs"/>
<Compile Include="Client\Messages\ViewportUpdateMessage.cs"/>
<Compile Include="NibriboardApp.cs"/>
<Compile Include="Utilities\LineSimplifier.cs"/>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RippleSpace\Plane.cs" />
<Compile Include="RippleSpace\Chunk.cs" />
<Compile Include="RippleSpace\LocationReference.cs" />
<Compile Include="RippleSpace\ChunkReference.cs" />
<Compile Include="RippleSpace\DrawnLine.cs" />
<Compile Include="RippleSpace\Reference.cs" />
<Compile Include="NibriboardServer.cs" />
<Compile Include="Log.cs" />
<Compile Include="Utilities\EmbeddedFiles.cs" />
<Compile Include="Env.cs" />
<Compile Include="RippleSpace\RippleSpaceManager.cs" />
<Compile Include="Client\NibriClient.cs" />
<Compile Include="Client\ClientSettings.cs" />
<Compile Include="Utilities\PointExtensions.cs" />
<Compile Include="Utilities\JsonUtilities.cs" />
<Compile Include="Client\Messages\Message.cs" />
<Compile Include="Client\Messages\HandshakeRequestMessage.cs" />
<Compile Include="Client\Messages\CursorPositionMessage.cs" />
<Compile Include="RippleSpace\ClientState.cs" />
<Compile Include="Utilities\Rectangle.cs" />
<Compile Include="Utilities\Vector2.cs" />
<Compile Include="Client\Messages\ClientStatesMessage.cs" />
<Compile Include="Utilities\ColourHSL.cs" />
<Compile Include="Utilities\ToStringJsonConverter.cs" />
<Compile Include="Client\Messages\HandshakeResponseMessage.cs" />
<Compile Include="Client\Messages\ShutdownMessage.cs" />
<Compile Include="Client\Messages\IdleDisconnectMessage.cs" />
<Compile Include="Client\Messages\HeartbeatMessage.cs" />
<Compile Include="Client\Messages\ChunkUpdateMessage.cs" />
<Compile Include="Client\Messages\PlaneChangeMessage.cs" />
<Compile Include="Client\Messages\ExceptionMessage.cs" />
<Compile Include="Utilities\ChunkTools.cs" />
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs" />
<Compile Include="Client\ChunkCache.cs" />
<Compile Include="Client\Messages\LinePartMessage.cs" />
<Compile Include="Client\LineIncubator.cs" />
<Compile Include="Client\Messages\LineCompleteMessage.cs" />
<Compile Include="Client\Messages\ErrorMessage.cs" />
<Compile Include="Client\Messages\PlaneChangeOkMessage.cs" />
<Compile Include="Client\RawChunkReference.cs" />
<Compile Include="Client\Messages\LinePartReflectionMessage.cs" />
<Compile Include="Client\Messages\LineCompleteReflectionMessage.cs" />
<Compile Include="Client\Messages\LineStartMessage.cs" />
<Compile Include="Client\Messages\LineStartReflectionMessage.cs" />
<Compile Include="Utilities\CalcPaths.cs" />
<Compile Include="RippleSpace\PlaneInfo.cs" />
<Compile Include="Utilities\BinaryIO.cs" />
<Compile Include="Client\Messages\ViewportUpdateMessage.cs" />
<Compile Include="NibriboardApp.cs" />
<Compile Include="Utilities\LineSimplifier.cs" />
</ItemGroup>
<!--
<ItemGroup>
@ -149,15 +152,15 @@
</ItemGroup>
-->
<ItemGroup>
<Folder Include="RippleSpace\"/>
<Folder Include="Utilities\"/>
<Folder Include="ClientFiles\"/>
<Folder Include="Client\"/>
<Folder Include="Client\Messages\"/>
<Folder Include="RippleSpace\" />
<Folder Include="Utilities\" />
<Folder Include="ClientFiles\" />
<Folder Include="Client\" />
<Folder Include="Client\Messages\" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config"/>
<None Include="ClientFiles\index.js"/>
<None Include="packages.config" />
<None Include="ClientFiles\index.js" />
</ItemGroup>
<!-- MonoDevelop settings -->
@ -165,7 +168,7 @@
<MonoDevelop>
<Properties>
<Policies>
<DotNetNamingPolicy ResourceNamePolicy="FileFormatDefault" DirectoryNamespaceAssociation="PrefixedHierarchical"/>
<DotNetNamingPolicy ResourceNamePolicy="FileFormatDefault" DirectoryNamespaceAssociation="PrefixedHierarchical" />
</Policies>
</Properties>
</MonoDevelop>