File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -32,25 +32,18 @@ node {
32
32
nodeModulesDir = file(" ${ project.projectDir} /src/main/webapp" )
33
33
}
34
34
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
-
42
35
// default yarn_install
43
36
task package_install (type : YarnTask ) {
44
37
// add the express package only
45
- args = [' install' , ' --modules-folder' , ' . /app/libs' ]
38
+ args = [' install' , ' --modules-folder' , project . buildDir . path + ' /webapp /app/libs' ]
46
39
}
47
40
task build_package (type : YarnTask , dependsOn : package_install) {
48
41
// 只安装快递包
49
42
args = [' run' , ' build' ]
50
43
}
51
44
task build_webapp (type : Copy , dependsOn : build_package) {
52
45
from(' src/main/webapp/app' )
53
- // from('src/main/ webapp/node_modules ')
46
+ from(project . buildDir . path + ' / webapp/app ' )
54
47
into project(' :sylph-dist' ). buildDir. path + ' /webapp'
55
48
}
56
49
assemble. dependsOn ' build_webapp'
You can’t perform that action at this time.
0 commit comments