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:
parent
1ba7c3650f
commit
cb804b960d
1 changed files with 74 additions and 71 deletions
|
@ -31,11 +31,11 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- References -->
|
<!-- References -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System"/>
|
<Reference Include="System" />
|
||||||
<Reference Include="MimeSharp">
|
<Reference Include="MimeSharp">
|
||||||
<HintPath>..\packages\MimeSharp.1.0.0\lib\MimeSharp.dll</HintPath>
|
<HintPath>..\packages\MimeSharp.1.0.0\lib\MimeSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Drawing"/>
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="Newtonsoft.Json">
|
<Reference Include="Newtonsoft.Json">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<Package>monodevelop</Package>
|
<Package>monodevelop</Package>
|
||||||
|
@ -55,18 +55,21 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
|
|
||||||
<Target Name="BeforeBuild">
|
<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" />
|
<MakeDir Directories="$(ProjectDir)/obj/client_dist" />
|
||||||
|
|
||||||
<Message Importance="high" Text="------[ Gliding Squirrel ]------"/>
|
<Message Importance="high" Text="------[ Gliding Squirrel ]------" />
|
||||||
<MSBuild Projects="$(ProjectDir)/lib/GlidingSquirrel/GlidingSquirrel/GlidingSquirrel.csproj" Properties="Configuration=$(Configuration)"/>
|
<MSBuild Projects="$(ProjectDir)/lib/GlidingSquirrel/GlidingSquirrel/GlidingSquirrel.csproj" Properties="Configuration=$(Configuration)" />
|
||||||
<Message Importance="high" Text="----------[ npm build ]----------"/>
|
<Message Importance="high" Text="----------[ npm build ]----------" />
|
||||||
<Exec WorkingDirectory="$(ProjectDir)/ClientFiles" Command="npm run 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/**/*.*">
|
<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" />
|
<Output TaskParameter="Include" ItemName="StaticClientFiles" />
|
||||||
|
@ -74,66 +77,66 @@
|
||||||
|
|
||||||
<Copy SourceFiles="@(StaticClientFiles)" DestinationFolder="$(ProjectDir)/obj/client_dist/%(RecursiveDir)" />
|
<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/**/*.*">
|
<CreateItem Include="$(ProjectDir)/obj/client_dist/**/*.*">
|
||||||
<Output ItemName="EmbeddedResource" TaskParameter="Include"/>
|
<Output ItemName="EmbeddedResource" TaskParameter="Include" />
|
||||||
</CreateItem>
|
</CreateItem>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs"/>
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs"/>
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="RippleSpace\Plane.cs"/>
|
<Compile Include="RippleSpace\Plane.cs" />
|
||||||
<Compile Include="RippleSpace\Chunk.cs"/>
|
<Compile Include="RippleSpace\Chunk.cs" />
|
||||||
<Compile Include="RippleSpace\LocationReference.cs"/>
|
<Compile Include="RippleSpace\LocationReference.cs" />
|
||||||
<Compile Include="RippleSpace\ChunkReference.cs"/>
|
<Compile Include="RippleSpace\ChunkReference.cs" />
|
||||||
<Compile Include="RippleSpace\DrawnLine.cs"/>
|
<Compile Include="RippleSpace\DrawnLine.cs" />
|
||||||
<Compile Include="RippleSpace\Reference.cs"/>
|
<Compile Include="RippleSpace\Reference.cs" />
|
||||||
<Compile Include="NibriboardServer.cs"/>
|
<Compile Include="NibriboardServer.cs" />
|
||||||
<Compile Include="Log.cs"/>
|
<Compile Include="Log.cs" />
|
||||||
<Compile Include="Utilities\EmbeddedFiles.cs"/>
|
<Compile Include="Utilities\EmbeddedFiles.cs" />
|
||||||
<Compile Include="Env.cs"/>
|
<Compile Include="Env.cs" />
|
||||||
<Compile Include="RippleSpace\RippleSpaceManager.cs"/>
|
<Compile Include="RippleSpace\RippleSpaceManager.cs" />
|
||||||
<Compile Include="Client\NibriClient.cs"/>
|
<Compile Include="Client\NibriClient.cs" />
|
||||||
<Compile Include="Client\ClientSettings.cs"/>
|
<Compile Include="Client\ClientSettings.cs" />
|
||||||
<Compile Include="Utilities\PointExtensions.cs"/>
|
<Compile Include="Utilities\PointExtensions.cs" />
|
||||||
<Compile Include="Utilities\JsonUtilities.cs"/>
|
<Compile Include="Utilities\JsonUtilities.cs" />
|
||||||
<Compile Include="Client\Messages\Message.cs"/>
|
<Compile Include="Client\Messages\Message.cs" />
|
||||||
<Compile Include="Client\Messages\HandshakeRequestMessage.cs"/>
|
<Compile Include="Client\Messages\HandshakeRequestMessage.cs" />
|
||||||
<Compile Include="Client\Messages\CursorPositionMessage.cs"/>
|
<Compile Include="Client\Messages\CursorPositionMessage.cs" />
|
||||||
<Compile Include="RippleSpace\ClientState.cs"/>
|
<Compile Include="RippleSpace\ClientState.cs" />
|
||||||
<Compile Include="Utilities\Rectangle.cs"/>
|
<Compile Include="Utilities\Rectangle.cs" />
|
||||||
<Compile Include="Utilities\Vector2.cs"/>
|
<Compile Include="Utilities\Vector2.cs" />
|
||||||
<Compile Include="Client\Messages\ClientStatesMessage.cs"/>
|
<Compile Include="Client\Messages\ClientStatesMessage.cs" />
|
||||||
<Compile Include="Utilities\ColourHSL.cs"/>
|
<Compile Include="Utilities\ColourHSL.cs" />
|
||||||
<Compile Include="Utilities\ToStringJsonConverter.cs"/>
|
<Compile Include="Utilities\ToStringJsonConverter.cs" />
|
||||||
<Compile Include="Client\Messages\HandshakeResponseMessage.cs"/>
|
<Compile Include="Client\Messages\HandshakeResponseMessage.cs" />
|
||||||
<Compile Include="Client\Messages\ShutdownMessage.cs"/>
|
<Compile Include="Client\Messages\ShutdownMessage.cs" />
|
||||||
<Compile Include="Client\Messages\IdleDisconnectMessage.cs"/>
|
<Compile Include="Client\Messages\IdleDisconnectMessage.cs" />
|
||||||
<Compile Include="Client\Messages\HeartbeatMessage.cs"/>
|
<Compile Include="Client\Messages\HeartbeatMessage.cs" />
|
||||||
<Compile Include="Client\Messages\ChunkUpdateMessage.cs"/>
|
<Compile Include="Client\Messages\ChunkUpdateMessage.cs" />
|
||||||
<Compile Include="Client\Messages\PlaneChangeMessage.cs"/>
|
<Compile Include="Client\Messages\PlaneChangeMessage.cs" />
|
||||||
<Compile Include="Client\Messages\ExceptionMessage.cs"/>
|
<Compile Include="Client\Messages\ExceptionMessage.cs" />
|
||||||
<Compile Include="Utilities\ChunkTools.cs"/>
|
<Compile Include="Utilities\ChunkTools.cs" />
|
||||||
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs"/>
|
<Compile Include="Client\Messages\ChunkUpdateRequestMessage.cs" />
|
||||||
<Compile Include="Client\ChunkCache.cs"/>
|
<Compile Include="Client\ChunkCache.cs" />
|
||||||
<Compile Include="Client\Messages\LinePartMessage.cs"/>
|
<Compile Include="Client\Messages\LinePartMessage.cs" />
|
||||||
<Compile Include="Client\LineIncubator.cs"/>
|
<Compile Include="Client\LineIncubator.cs" />
|
||||||
<Compile Include="Client\Messages\LineCompleteMessage.cs"/>
|
<Compile Include="Client\Messages\LineCompleteMessage.cs" />
|
||||||
<Compile Include="Client\Messages\ErrorMessage.cs"/>
|
<Compile Include="Client\Messages\ErrorMessage.cs" />
|
||||||
<Compile Include="Client\Messages\PlaneChangeOkMessage.cs"/>
|
<Compile Include="Client\Messages\PlaneChangeOkMessage.cs" />
|
||||||
<Compile Include="Client\RawChunkReference.cs"/>
|
<Compile Include="Client\RawChunkReference.cs" />
|
||||||
<Compile Include="Client\Messages\LinePartReflectionMessage.cs"/>
|
<Compile Include="Client\Messages\LinePartReflectionMessage.cs" />
|
||||||
<Compile Include="Client\Messages\LineCompleteReflectionMessage.cs"/>
|
<Compile Include="Client\Messages\LineCompleteReflectionMessage.cs" />
|
||||||
<Compile Include="Client\Messages\LineStartMessage.cs"/>
|
<Compile Include="Client\Messages\LineStartMessage.cs" />
|
||||||
<Compile Include="Client\Messages\LineStartReflectionMessage.cs"/>
|
<Compile Include="Client\Messages\LineStartReflectionMessage.cs" />
|
||||||
<Compile Include="Utilities\CalcPaths.cs"/>
|
<Compile Include="Utilities\CalcPaths.cs" />
|
||||||
<Compile Include="RippleSpace\PlaneInfo.cs"/>
|
<Compile Include="RippleSpace\PlaneInfo.cs" />
|
||||||
<Compile Include="Utilities\BinaryIO.cs"/>
|
<Compile Include="Utilities\BinaryIO.cs" />
|
||||||
<Compile Include="Client\Messages\ViewportUpdateMessage.cs"/>
|
<Compile Include="Client\Messages\ViewportUpdateMessage.cs" />
|
||||||
<Compile Include="NibriboardApp.cs"/>
|
<Compile Include="NibriboardApp.cs" />
|
||||||
<Compile Include="Utilities\LineSimplifier.cs"/>
|
<Compile Include="Utilities\LineSimplifier.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!--
|
<!--
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -149,15 +152,15 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
-->
|
-->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="RippleSpace\"/>
|
<Folder Include="RippleSpace\" />
|
||||||
<Folder Include="Utilities\"/>
|
<Folder Include="Utilities\" />
|
||||||
<Folder Include="ClientFiles\"/>
|
<Folder Include="ClientFiles\" />
|
||||||
<Folder Include="Client\"/>
|
<Folder Include="Client\" />
|
||||||
<Folder Include="Client\Messages\"/>
|
<Folder Include="Client\Messages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config"/>
|
<None Include="packages.config" />
|
||||||
<None Include="ClientFiles\index.js"/>
|
<None Include="ClientFiles\index.js" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- MonoDevelop settings -->
|
<!-- MonoDevelop settings -->
|
||||||
|
@ -165,7 +168,7 @@
|
||||||
<MonoDevelop>
|
<MonoDevelop>
|
||||||
<Properties>
|
<Properties>
|
||||||
<Policies>
|
<Policies>
|
||||||
<DotNetNamingPolicy ResourceNamePolicy="FileFormatDefault" DirectoryNamespaceAssociation="PrefixedHierarchical"/>
|
<DotNetNamingPolicy ResourceNamePolicy="FileFormatDefault" DirectoryNamespaceAssociation="PrefixedHierarchical" />
|
||||||
</Policies>
|
</Policies>
|
||||||
</Properties>
|
</Properties>
|
||||||
</MonoDevelop>
|
</MonoDevelop>
|
||||||
|
|
Loading…
Reference in a new issue