import com.github.gradle.node.npm.task.NpxTask plugins { id ("com.github.node-gradle.node") version "7.1.0" } val angularClient by configurations.creating { isCanBeConsumed = false } dependencies { angularClient(project(":angular-api-client", "angularClient")) } tasks.register("getClient") { from(angularClient) into(layout.buildDirectory.dir("client")) } tasks.register("build") { dependsOn("npmInstall") dependsOn("getClient") command = "ng" args.add("build") } tasks.register("start") { dependsOn("npmInstall") dependsOn("getClient") command = "ng" args.add("serve") }