fix : npm build test

This commit is contained in:
minseokkang
2022-11-11 12:32:02 +09:00
parent f28acc9edc
commit 336741f4c8

View File

@@ -5,9 +5,15 @@ plugins {
id "com.github.node-gradle.node" version "3.1.1"
}
apply plugin: 'com.github.node-gradle.node'
node {
version = '14.15.4'
npmVersion = '6.14.10'
download = true
nodeProjectDir = file('./src/frontend')
workDir = file("./src/frontend")
npmWorkDir = file("./src/frontend")
nodeModulesDir = file("./src/frontend")
@@ -52,14 +58,8 @@ tasks.named('test') {
useJUnitPlatform()
}
task setUp(type: NpmTask){
description = "Install Node.js packages!"
args = ['install']
inputs.files file('package.json')
outputs.files file('node_modules');
}
task buildFrontEnd(type: NpmTask, dependsOn: setUp){
task buildFrontEnd(type: NpmTask){
description = "Build Vue.js"
args = ['run', 'build']
}