blob: 2445a1e15ecd5d55389cbcf892378c87ab983f90 [file] [log] [blame]
plugins {
id 'base'
id 'maven-publish'
id 'com.github.node-gradle.node' version '2.2.4'
}
// gulp is using build directory so we use another
project.buildDir = 'build-gradle'
node {
// Version of node to use.
version = '12.18.2'
download = true
}
task gulpPreviewTheme(type: NpxTask) {
dependsOn npm_install
// https://gitlab.com/antora/antora-ui-default#user-content-preview-the-ui
command = 'gulp'
args = [ 'preview']
}
task gulpBuildBundle(type: NpxTask) {
// https://gitlab.com/antora/antora-ui-default#user-content-package-for-use-with-antora
dependsOn npm_install
command = 'gulp'
args = ["bundle"]
inputs.files('package.json', 'package-lock.json', '.gulp.json', 'gulpfile.js', 'index.js')
inputs.dir('src')
inputs.dir(fileTree("node_modules").exclude(".cache"))
outputs.files('build/ui-bundle.zip')
}
build.dependsOn 'gulpBuildBundle'