Skip to content

Commit 6f1d5ae

Browse files
committed
feat: add verbose logging option
1 parent b15d9d5 commit 6f1d5ae

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

packages/nx/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ A custom builder is provided via `@nativescript/nx:build` with the following opt
127127
"default": false,
128128
"description": "Enable uglify during the webpack build"
129129
},
130+
"verbose": {
131+
"type": "boolean",
132+
"default": false,
133+
"description": "Enable verbose logging"
134+
},
130135
"release": {
131136
"type": "boolean",
132137
"default": false,

packages/nx/src/builders/build/builder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export function runBuilder(options: BuildBuilderSchema, context: ExecutorContext
7272
if (options.uglify) {
7373
nsOptions.push('--env.uglify');
7474
}
75+
if (options.verbose) {
76+
nsOptions.push('--env.verbose');
77+
}
7578
if (options.production) {
7679
nsOptions.push('--env.production');
7780
}

packages/nx/src/builders/build/schema.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface BuildBuilderSchema extends JsonObject {
77
clean?: boolean;
88
noHmr?: boolean;
99
uglify?: boolean;
10+
verbose?: boolean;
1011
release?: boolean;
1112
forDevice?: boolean;
1213
production?: boolean;

packages/nx/src/builders/build/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"default": false,
3434
"description": "Enable uglify during the webpack build"
3535
},
36+
"verbose": {
37+
"type": "boolean",
38+
"default": false,
39+
"description": "Enable verbose logging"
40+
},
3641
"release": {
3742
"type": "boolean",
3843
"default": false,

0 commit comments

Comments
 (0)