Skip to content

Commit

Permalink
Yarn fix build
Browse files Browse the repository at this point in the history
Build SW before Cloud
  • Loading branch information
b-straub committed Jul 19, 2024
1 parent b61a3b0 commit 0f5ba97
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions DexieCloudNET/DexieCloudNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,34 +54,34 @@

<PropertyGroup>
<!-- File with mtime of last successful npm install -->
<YarnInstallStampFile>yarn/dexiecloud/node_modules/.install-stamp</YarnInstallStampFile>
<YarnInstallStampFileSW>yarn/serviceworker/node_modules/.install-stamp</YarnInstallStampFileSW>
<Authors>Bernhard Straub</Authors>
</PropertyGroup>

<Target Name="YarnInstallDexieCloud" BeforeTargets="BeforeBuild" Inputs="yarn/dexiecloud/package.json" Outputs="$(YarnInstallStampFile)">
<Exec Command="yarn install" WorkingDirectory="yarn/dexiecloud" />
<Touch Files="$(YarnInstallStampFile)" AlwaysCreate="true" />
</Target>

<Target Name="YarnCommandsDebugDexieCloud" AfterTargets="YarnInstallDexieCloud" Condition="'$(Configuration)' == 'Debug'">
<Exec Command="yarn run buildDebug" WorkingDirectory="yarn/dexiecloud" />
</Target>

<Target Name="YarnCommandsReleaseDexieCloud" AfterTargets="YarnInstallDexieCloud" Condition="'$(Configuration)' == 'Release'">
<Exec Command="yarn run buildRelease" WorkingDirectory="yarn/dexiecloud" />
<Target Name="YarnInstallServiceWorker" BeforeTargets="BeforeBuild" Inputs="yarn/serviceworker/package.json" Outputs="$(YarnInstallStampFileSW)">
<Exec Command="yarn install" WorkingDirectory="yarn/serviceworker" />
<Touch Files="$(YarnInstallStampFileSW)" AlwaysCreate="true" />
</Target>

<PropertyGroup>
<!-- File with mtime of last successful npm install -->
<YarnInstallStampFile>yarn/serviceworker/node_modules/.install-stamp</YarnInstallStampFile>
<YarnInstallStampFileCloud>yarn/dexiecloud/node_modules/.install-stamp</YarnInstallStampFileCloud>
<Authors>Bernhard Straub</Authors>
</PropertyGroup>

<Target Name="YarnInstallServiceWorker" BeforeTargets="BeforeBuild" Inputs="yarn/serviceworker/package.json" Outputs="$(YarnInstallStampFile)">
<Exec Command="yarn install" WorkingDirectory="yarn/serviceworker" />
<Touch Files="$(YarnInstallStampFile)" AlwaysCreate="true" />
<Target Name="YarnInstallDexieCloud" BeforeTargets="BeforeBuild" Inputs="yarn/dexiecloud/package.json" Outputs="$(YarnInstallStampFileCloud)">
<Exec Command="yarn install" WorkingDirectory="yarn/dexiecloud" />
<Touch Files="$(YarnInstallStampFileCloud)" AlwaysCreate="true" />
</Target>

<Target Name="YarnCommandsDebugDexieCloud" AfterTargets="YarnInstallDexieCloud" Condition="'$(Configuration)' == 'Debug'">
<Exec Command="yarn run buildDebug" WorkingDirectory="yarn/dexiecloud" />
</Target>

<Target Name="YarnCommandsReleaseDexieCloud" AfterTargets="YarnInstallDexieCloud" Condition="'$(Configuration)' == 'Release'">
<Exec Command="yarn run buildRelease" WorkingDirectory="yarn/dexiecloud" />
</Target>

<Target Name="YarnCommandsDebugServiceworker" AfterTargets="YarnInstallServiceWorker" Condition="'$(Configuration)' == 'Debug'">
<Exec Command="yarn run buildDebug" WorkingDirectory="yarn/serviceworker" />
</Target>
Expand Down

0 comments on commit 0f5ba97

Please sign in to comment.