Skip to content

Commit

Permalink
Merge pull request #78 from harbby/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
harbby authored Mar 27, 2019
2 parents 8bfe737 + 34274c6 commit 4552ec3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions sylph-controller/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,18 @@ node {
nodeModulesDir = file("${project.projectDir}/src/main/webapp")
}

task clear(type: Delete) {
delete file("${project.projectDir}/src/main/webapp/node_modules"),
file("${project.projectDir}/src/main/webapp/app/libs")
}

//clean.dependsOn 'clear'

//default yarn_install
task package_install(type: YarnTask) {
// add the express package only
args = ['install', '--modules-folder', './app/libs']
args = ['install', '--modules-folder', project.buildDir.path + '/webapp/app/libs']
}
task build_package(type: YarnTask, dependsOn: package_install) {
//只安装快递包
args = ['run', 'build']
}
task build_webapp(type: Copy, dependsOn: build_package) {
from('src/main/webapp/app')
//from('src/main/webapp/node_modules')
from(project.buildDir.path + '/webapp/app')
into project(':sylph-dist').buildDir.path + '/webapp'
}
assemble.dependsOn 'build_webapp'
Expand Down

0 comments on commit 4552ec3

Please sign in to comment.