Skip to content

Commit cc11ebc

Browse files
committed
Add the node_modules directory to the inputs of the build and test example tasks.
1 parent b938402 commit cc11ebc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/vertx-react/webapp/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def buildTask = tasks.register("buildWebapp", NpxTask) {
1313
args = ["build"]
1414
dependsOn(yarn)
1515
inputs.dir(fileTree("src").exclude("**/*.test.js").exclude("**/*.spec.js").exclude("**/__tests__/**/*.js"))
16+
inputs.dir("node_modules")
1617
inputs.dir("public")
1718
outputs.dir("${buildDir}/webapp")
1819
environment = ["BUILD_PATH": "${buildDir}/webapp/webroot"]
@@ -22,6 +23,7 @@ def testTask = tasks.register("testWebapp", NpxTask) {
2223
command = "react-scripts"
2324
args = ["test"]
2425
dependsOn(yarn)
26+
inputs.dir("node_modules")
2527
inputs.dir("src")
2628
inputs.dir("public")
2729
outputs.upToDateWhen { true }

0 commit comments

Comments
 (0)