From b1bc90f0a586d6d38a1d408acee437aa84dcd0a7 Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Tue, 29 Apr 2025 11:41:23 +0200
Subject: [PATCH] build: restores some of the behavior from V13 in relation to
StaticAssets
In v13, the StaticAssets build was only triggered based on the existence of either the output folder or a preserve.* marker file. Here, we also additionally check for the node_modules/.package-lock.json file before reinstalling npm dependencies. We also now only run `npm install` rather than `npm ci` to optimise the build.
---
.../Umbraco.Cms.StaticAssets.csproj | 73 +++++++++++++++----
1 file changed, 60 insertions(+), 13 deletions(-)
diff --git a/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj b/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
index d6fbf7ab37ae..31935332669c 100644
--- a/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
+++ b/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
@@ -26,23 +26,36 @@
-
+
+
+
+
+
+
+
+
..\Umbraco.Web.UI.Client\
- wwwroot\umbraco\backoffice
+ $(ProjectDir)wwwroot\umbraco\backoffice
-
+
+
+
+
+
+
+
-
+
-
+
@@ -61,27 +74,46 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
..\Umbraco.Web.UI.Login\
- wwwroot\umbraco\login
+ $(ProjectDir)wwwroot\umbraco\login
-
-
-
-
+
+
+
+
+
+
-
+
-
+
@@ -99,4 +131,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+