Skip to content

Commit 4552ec3

Browse files
authored
Merge pull request #78 from harbby/dev
Dev
2 parents 8bfe737 + 34274c6 commit 4552ec3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

sylph-controller/build.gradle

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,18 @@ node {
3232
nodeModulesDir = file("${project.projectDir}/src/main/webapp")
3333
}
3434

35-
task clear(type: Delete) {
36-
delete file("${project.projectDir}/src/main/webapp/node_modules"),
37-
file("${project.projectDir}/src/main/webapp/app/libs")
38-
}
39-
40-
//clean.dependsOn 'clear'
41-
4235
//default yarn_install
4336
task package_install(type: YarnTask) {
4437
// add the express package only
45-
args = ['install', '--modules-folder', './app/libs']
38+
args = ['install', '--modules-folder', project.buildDir.path + '/webapp/app/libs']
4639
}
4740
task build_package(type: YarnTask, dependsOn: package_install) {
4841
//只安装快递包
4942
args = ['run', 'build']
5043
}
5144
task build_webapp(type: Copy, dependsOn: build_package) {
5245
from('src/main/webapp/app')
53-
//from('src/main/webapp/node_modules')
46+
from(project.buildDir.path + '/webapp/app')
5447
into project(':sylph-dist').buildDir.path + '/webapp'
5548
}
5649
assemble.dependsOn 'build_webapp'

0 commit comments

Comments
 (0)