diff --git a/reposilite-frontend/build.gradle.kts b/reposilite-frontend/build.gradle.kts index 99822d646..66fdc33fb 100644 --- a/reposilite-frontend/build.gradle.kts +++ b/reposilite-frontend/build.gradle.kts @@ -14,14 +14,19 @@ * limitations under the License. */ +import com.github.gradle.node.npm.task.NpmTask import com.github.gradle.node.npm.task.NpxTask plugins { id("com.github.node-gradle.node") version "3.2.1" } -val lintTask = tasks.register("lintFrontend") { - command.set("eslint") +node { + +} + +val lintTask = tasks.register("lintFrontend") { +// command.set("eslint") args.set(listOf("src/**")) dependsOn(tasks.npmInstall) inputs.dir("src") @@ -30,8 +35,8 @@ val lintTask = tasks.register("lintFrontend") { outputs.upToDateWhen { true } } -val buildTask = tasks.register("buildFrontend") { - command.set("vite") +val buildTask = tasks.register("buildFrontend") { +// command.set("vite") args.set(listOf("build")) dependsOn(tasks.npmInstall, lintTask) inputs.dir(project.fileTree("src"))