-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add schematic details and links to config page #27272
Conversation
9ef982a
to
959d154
Compare
You can preview 0337411 at https://pr27272-0337411.ngbuilds.io/. |
The JSON schemas for the default schematics used by the CLI to generate project components are collected in the [`@schematics` package](https://github.com/angular/angular-cli/blob/v6.0.0-rc.8/packages/%40angular/cli/lib/config/schema.json). | ||
These schematics configure the options available to the CLI for generating the following `ng generate` sub-commands: | ||
|
||
* [component](https://github.com/angular/angular-cli/blob/v6.0.0-rc.8/packages/%40angular/cli/lib/config/schema.json#L74-L144) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should use tags here, at least not for version 6.
But what should we use instead, thoughts?
//cc @hansl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tag is fine. I don't think we should use RC tags, only stable ones.
Is there a reason this points to 6.0 instead of 7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed individual links and added description of how you could use the workspace schema.
@hansl please check.
You can preview 7d04ba3 at https://pr27272-7d04ba3.ngbuilds.io/. |
You can preview 29427dd at https://pr27272-29427dd.ngbuilds.io/. |
You can preview c2a61d9 at https://pr27272-c2a61d9.ngbuilds.io/. |
You can preview c24f728 at https://pr27272-c24f728.ngbuilds.io/. |
a71d388
to
a0a2f7f
Compare
a0a2f7f
to
5810a3c
Compare
You can preview 5810a3c at https://pr27272-5810a3c.ngbuilds.io/. |
5810a3c
to
1274cbf
Compare
You can preview 1274cbf at https://pr27272-1274cbf.ngbuilds.io/. |
You can preview c7487ee at https://pr27272-c7487ee.ngbuilds.io/. |
c7487ee
to
79db1d6
Compare
You can preview 79db1d6 at https://pr27272-79db1d6.ngbuilds.io/. |
79db1d6
to
ea07cf7
Compare
You can preview ea07cf7 at https://pr27272-ea07cf7.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There still seems to be some confusion here between Schematics and Architect that needs to be resolved. There are also some minor suggested improvements.
ea07cf7
to
7e06662
Compare
Thanks @Splaktar -- corrections made. |
You can preview c504609 at https://pr27272-c504609.ngbuilds.io/. |
You can preview 54b6e63 at https://pr27272-54b6e63.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some additional suggestions.
At the top level of `angular.json`, a few properties configure the workspace, and a `projects` section contains the remaining per-project configuration options. | ||
At the top level of `angular.json`, a few properties configure the workspace, and a `projects` section contains the remaining per-project configuration options. CLI defaults set at the workspace level can be overridden by defaults set at the project level, and defaults set at the project level can be overridden on the command line. | ||
|
||
The following properties at the top level of the file configure the workspace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following properties at the top level of the file configure the workspace. | |
The following are properties at the top level of the workspace configuration file: |
You can preview 323792a at https://pr27272-323792a.ngbuilds.io/. |
323792a
to
e24620e
Compare
You can preview e24620e at https://pr27272-e24620e.ngbuilds.io/. |
At the top level of `angular.json`, a few properties configure the workspace, and a `projects` section contains the remaining per-project configuration options. | ||
At the top level of `angular.json`, a few properties configure the workspace, and a `projects` section contains the remaining per-project configuration options. CLI defaults set at the workspace level can be overridden by defaults set at the project level, and defaults set at the project level can be overridden on the command line. | ||
|
||
The following properties are at the top level of the file configure the workspace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My whole suggestion was not accepted for this line. It still has some grammar issues even after that update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, fixing typo. This line introduces the list of top-level properties:
"The following properties at the top level of the file configure the workspace."
What do you think is wrong with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I think that I see how you want it to read... perhaps this would make that more clear to the reader:
"The following properties, at the top level of the file, configure the workspace."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Done.
You can preview 7dbbc48 at https://pr27272-7dbbc48.ngbuilds.io/. |
You can preview 58ff57f at https://pr27272-58ff57f.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
58ff57f
to
b6ce9a6
Compare
b6ce9a6
to
4adefc8
Compare
You can preview b6ce9a6 at https://pr27272-b6ce9a6.ngbuilds.io/. |
You can preview 4adefc8 at https://pr27272-4adefc8.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information