Skip to content

Commit 8ced7f0

Browse files
Merge pull request #55 from ngx-builders/feat-add-project-optiopn
feat-provide project option for ng add
2 parents c3ce965 + da35dcd commit 8ced7f0

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ This builder does it for you with zero configuration.
1515

1616
```
1717
ng add @ngx-builders/analyze
18+
OR
19+
ng add @ngx-builders/analyze --project={projectName}
1820
```
1921

2022
NOTE: This version uses npx to install source-map-explorer temporarily if it isn't installed already. If you don't have npx installed, please install it.

ng-add/schema.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "source-map-explore",
4-
"title": "Builder to analyze using source-map-explorer",
5-
"type": "object",
6-
"properties": {},
7-
"required": []
8-
}
2+
"$schema": "http://json-schema.org/schema",
3+
"id": "source-map-explore",
4+
"title": "Builder to analyze using source-map-explorer",
5+
"type": "object",
6+
"properties": {
7+
"project": {
8+
"type": "string",
9+
"description": "The name of the project.",
10+
"$default": {
11+
"$source": "projectName"
12+
}
13+
}
14+
},
15+
"required": []
16+
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"forceConsistentCasingInFileNames": true,
1717
"strictPropertyInitialization": false,
1818
"strictNullChecks": true,
19-
"sourceMap": true,
19+
"sourceMap": false,
2020
"declaration": false,
21-
"inlineSources": true,
21+
"inlineSources": false,
2222
"stripInternal": true,
2323
"skipLibCheck": true,
2424
"noImplicitAny": false,

0 commit comments

Comments
 (0)