aboutsummaryrefslogtreecommitdiff
path: root/search-component/build.gradle.kts
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-04-01 02:19:40 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-06 13:15:51 +0200
commita1866dd98d291a6a2a538e88348c53ff08c812eb (patch)
tree93e6c483c05e9f2a8eca8ca35934043534de5bd4 /search-component/build.gradle.kts
parent03cc02db833b1ad91b3e96c533c44c725efeb36b (diff)
downloaddokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.tar.gz
dokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.tar.bz2
dokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.zip
Integrating fuzzy search into dokka
Diffstat (limited to 'search-component/build.gradle.kts')
-rw-r--r--search-component/build.gradle.kts18
1 files changed, 18 insertions, 0 deletions
diff --git a/search-component/build.gradle.kts b/search-component/build.gradle.kts
new file mode 100644
index 00000000..ab123e51
--- /dev/null
+++ b/search-component/build.gradle.kts
@@ -0,0 +1,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")
+ }
+} \ No newline at end of file