Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (40 sloc) 896 Bytes
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.4.RELEASE")
}
}
plugins {
id "com.moowork.node" version "1.2.0"
}
node {
version = '10.15.3'
download = true
workDir = file("${rootProject.buildDir}/node")
nodeModulesDir = file("${project.projectDir}")
}
npm_run_build.inputs.dir new File(projectDir, "src")
npm_run_build.outputs.dir new File(projectDir, "dist")
task prepareJS {}
prepareJS.dependsOn npm_install
task build {}
build.dependsOn prepareJS
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
task cleanJS() {
doLast {
delete 'node_modules'
}
}
idea {
module {
excludeDirs += file('node_modules')
}
}
}
You can’t perform that action at this time.