File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ export default createBuilder<any>(
23
23
}
24
24
25
25
const baseHref = builderConfig . baseHref ? `Your base-href: "${ builderConfig . baseHref } ` : '' ;
26
- context . logger . info ( `📦 Building "${ context . target . project } ". Configuration: "${ configuration } ". ${ baseHref } ` ) ;
26
+ const buildTarget = builderConfig . buildTarget ? builderConfig . buildTarget : 'build' ;
27
+ context . logger . info ( `📦 Building "${ context . target . project } ". Configuration: "${ configuration } ". Build Command: ${ buildTarget } . ${ baseHref } ` ) ;
27
28
28
29
const build = await context . scheduleTarget ( {
29
- target : 'build' ,
30
+ target : buildTarget ,
30
31
project : context . target . project || '' ,
31
32
configuration
32
33
} , overrides as json . JsonObject ) ;
Original file line number Diff line number Diff line change 1
1
export interface Schema {
2
+ buildTarget ?: string ;
2
3
configuration ?: string ;
3
4
noBuild ?: boolean ;
4
5
outputPath ?: boolean ;
Original file line number Diff line number Diff line change 3
3
"title" : " schema" ,
4
4
"description" : " Deployment of Angular CLI applications to Netlify" ,
5
5
"properties" : {
6
+ "buildTarget" : {
7
+ "type" : " string" ,
8
+ "default" : " build" ,
9
+ "description" : " A build target command."
10
+ },
6
11
"configuration" : {
7
12
"type" : " string" ,
8
13
"default" : " production" ,
You can’t perform that action at this time.
0 commit comments