From 7b28f1657ba59ce8a48fb9970dd638d250cc3e4b Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Tue, 28 Sep 2021 09:29:23 -0700 Subject: [PATCH 1/3] Deal with computed assets --- ...spNetCore.Components.CustomElements.csproj | 2 ++ .../js/WebpackBuild.targets | 35 ++++++++----------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/Microsoft.AspNetCore.Components.CustomElements.csproj b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/Microsoft.AspNetCore.Components.CustomElements.csproj index c078114ef..2963f2b9d 100644 --- a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/Microsoft.AspNetCore.Components.CustomElements.csproj +++ b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/Microsoft.AspNetCore.Components.CustomElements.csproj @@ -3,6 +3,8 @@ + js\ + npm run build:$(Configuration) net6.0 enable true diff --git a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets index db4abab0c..acf313ba8 100644 --- a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets +++ b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets @@ -1,38 +1,33 @@ - wwwroot\BlazorCustomElements.js + **\dist\**;**\*.targets;$(DefaultItemExcludes) - + - - - + - + - - + - - - + + - - + - - + <_NpmOutput Include="$(IntermediateOutputPath)\npm\**"> + + + + + + From 1725929b45b9838ef371f97a6687b3e2953db617 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Tue, 28 Sep 2021 09:53:52 -0700 Subject: [PATCH 2/3] Merge targets --- .../js/WebpackBuild.targets | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets index acf313ba8..ee358b868 100644 --- a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets +++ b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets @@ -14,16 +14,15 @@ - + - - <_NpmOutput Include="$(IntermediateOutputPath)\npm\**"> + From b66126c318199dcdb1980ae7fef7f3d113e38ff5 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Tue, 28 Sep 2021 10:19:27 -0700 Subject: [PATCH 3/3] Further simplify targets --- .../js/WebpackBuild.targets | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets index ee358b868..bca03e59e 100644 --- a/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets +++ b/src/BlazorCustomElements/src/Microsoft.AspNetCore.Components.CustomElements/js/WebpackBuild.targets @@ -23,10 +23,7 @@ - - - - +