-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2f0b05
commit 8a1afd8
Showing
3 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
64 changes: 32 additions & 32 deletions
64
src/Blazor.Extensions.WebUSB.JS/Blazor.Extensions.WebUSB.JS.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> | ||
<NoWarn>CS2008</NoWarn> | ||
|
||
<!-- VS's FastUpToDateCheck doesn't consider .ts file changes, so it's necessary to disable it to get incremental builds to work correctly (albeit not as fast as if FastUpToDateCheck did work for them) --> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.6.0" /> | ||
<WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec Command="npm install" /> | ||
</Target> | ||
|
||
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.webusb.js" DependsOnTargets="EnsureNpmRestored"> | ||
<RemoveDir Directories="dist" /> | ||
<Exec Command="npm run build" /> | ||
<ItemGroup> | ||
<EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
</Target> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> | ||
<NoWarn>CS2008</NoWarn> | ||
|
||
<!-- VS's FastUpToDateCheck doesn't consider .ts file changes, so it's necessary to disable it to get incremental builds to work correctly (albeit not as fast as if FastUpToDateCheck did work for them) --> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
<WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec Command="npm install" /> | ||
</Target> | ||
|
||
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.webusb.js" DependsOnTargets="EnsureNpmRestored"> | ||
<RemoveDir Directories="dist" /> | ||
<Exec Command="npm run build" /> | ||
<ItemGroup> | ||
<EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters