File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ build.builder = function(cli) {
42
42
default : "./dist" ,
43
43
type : "string"
44
44
} )
45
+ . option ( "clean-dest" , {
46
+ describe : "If present, clean the destination directory before building" ,
47
+ default : false ,
48
+ type : "boolean"
49
+ } )
45
50
. option ( "dev-exclude-project" , {
46
51
describe : "A list of specific projects to be excluded from dev mode (dev mode must be active for this to be effective)" ,
47
52
type : "array"
@@ -80,6 +85,7 @@ function handleBuild(argv) {
80
85
return builder . build ( {
81
86
tree : tree ,
82
87
destPath : argv . dest ,
88
+ cleanDest : argv [ "clean-dest" ] ,
83
89
buildDependencies : argv . all ,
84
90
dev : command === "dev" ,
85
91
selfContained : command === "self-contained" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const defaultBuilderArgs = {
22
22
} ,
23
23
destPath : "./dist" ,
24
24
buildDependencies : undefined ,
25
+ cleanDest : undefined ,
25
26
dev : false ,
26
27
selfContained : false ,
27
28
jsdoc : false ,
You can’t perform that action at this time.
0 commit comments