Skip to content

armgit / core

Public Imported from GitHub
0

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

Minor manager UI build config update

Rich Turnerbbf7256aa458
diff --git a/project.gradle b/project.gradle
index 82445c7d8..94228708c 100644
--- a/project.gradle
+++ b/project.gradle
@@ -105,7 +105,6 @@ task npmInstall(type: Exec){
commandLine npmCommand("npm"), "install"
}
task npmClean(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
commandLine npmCommand("npm"), "run-script", "clean"
}
task npmBuild(type: Exec){
diff --git a/ui/app/manager/build.gradle b/ui/app/manager/build.gradle
index d12bc034f..4e7822176 100644
--- a/ui/app/manager/build.gradle
+++ b/ui/app/manager/build.gradle
@@ -1,7 +1,13 @@
buildDir = "dist"
+task clean {
+ doFirst {
+ delete "node_modules"
+ }
+}
+
task installDist(type: Copy) {
- dependsOn npmClean, npmBuild
+ dependsOn clean, npmBuild
mustRunAfter(resolveTask(":manager:installDist"))
from project.buildDir
into "${resolveProject(':manager').buildDir}/install/manager/web/${projectDir.name}"