Skip to content

Commit aafb820

Browse files
add projection option for ng add
1 parent 9f03164 commit aafb820

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
- Angular project created via [Angular CLI](https://github.com/angular/angular-cli) v8.3.0 or greater.
99

1010
### Steps:
11-
1. run ```ng add @netlify-builder/deploy``` to add necessary dependencies. Once, it get installed,you will be prompted to enter (a) Site Id and (b) Netlify Token
11+
1. run `ng add @netlify-builder/deploy`
12+
OR `ng add @netlify-builder/deploy --project={projectName}` to add necessary dependencies. Once, it get installed,you will be prompted to enter (a) Site Id and (b) Netlify Token
1213
![Screenshot](screenshots/step-1.png)
1314
2. run ```ng deploy``` assuming that you have [Angular CLI](https://github.com/angular/angular-cli) installed globally
1415

src/ng-add/schema.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
"title": "Netlify Builder ng-add schematic",
55
"type": "object",
66
"properties": {
7+
"project": {
8+
"type": "string",
9+
"description": "The name of the project.",
10+
"$default": {
11+
"$source": "projectName"
12+
}
13+
},
714
"siteID": {
815
"type": "string",
916
"description": "You can find the Site ID on Netlify Settings/General",
@@ -15,7 +22,5 @@
1522
"x-prompt": "Personal Access Tokens of Netlify Account (required)"
1623
}
1724
},
18-
"required": [
19-
"netlifyToken"
20-
]
21-
}
25+
"required": ["netlifyToken"]
26+
}

0 commit comments

Comments
 (0)