aboutsummaryrefslogtreecommitdiff
path: root/search-component/build.gradle.kts
blob: ab123e511c29220e95ccbbf4be9214e746b81a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
plugins {
    id("com.moowork.node") version "1.3.1"
}

task("generateSearchFiles") {
    dependsOn("npm_install", "npm_run_build")
}

tasks {
    "npm_run_build" {
        inputs.dir("$projectDir/src/main/js/search/")
        inputs.files("$projectDir/package.json", "$projectDir/*.config.js")
        outputs.dir("$projectDir/dist/")
    }
    clean {
        delete = setOf("$projectDir/node_modules", "$projectDir/dist/", "$projectDir/package-lock.json")
    }
}