Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Updated UI build config

Rich Turnerbda8ea134eb9
diff --git a/ui/build.gradle b/ui/build.gradle
index 70d114ae4..452456aa9 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -1,6 +1,12 @@
task deleteNodeModules {
doFirst {
- delete "${project(':openremote').projectDir}/node_modules"
+ delete "${project(':openremote').projectDir}/node_modules"
+ }
+}
+
+task clean {
+ if (isCustomProject() && parent == rootProject) {
+ dependsOn deleteNodeModules
}
}
@@ -10,7 +16,7 @@ task build {
// Add dependency to openremote ui build for custom projects
// and also remove node_modules dir from openremote repo
if (isCustomProject() && parent == rootProject) {
- dependsOn resolveTask(":ui:build"), deleteNodeModules
+ dependsOn resolveTask(":ui:build")
}
}