All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.kelvindev15.gradle.NpmScriptTask.kt Maven / Gradle / Ivy

There is a newer version: 3.2.5
Show newest version
package io.github.kelvindev15.gradle

import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.TaskAction
import org.gradle.kotlin.dsl.property

/**
 * The task to run a npm command.
 */
open class NpmScriptTask : NpmTask() {

    /**
     * The script to run.
     */
    @Input
    val script: Property = project.objects.property()

    @TaskAction
    override fun exec() {
        arguments("run", script.get())
        super.exec()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy