-
Notifications
You must be signed in to change notification settings - Fork 12k
Partial update of Angular schematics with new workspace rules #14126
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
Conversation
b838df0
to
a331b7c
Compare
5bb54d1
to
879a66b
Compare
This avoids massive amounts of name conflicts between a commonly named variable of 'workspace' and the namespace
Library projects support scoped package names as project names.
Internally, the JSON workspace support uses JSON pointers to represent change locations. These need to be escaped to support slashes within a key.
879a66b
to
4970bed
Compare
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.
Just a couple of nits and a question, otherwise LGTM. It's great to finally have real workspace support.
export function updateWorkspace( | ||
updaterOrWorkspace: workspaces.WorkspaceDefinition | ||
| ((workspace: workspaces.WorkspaceDefinition) => void | PromiseLike<void>), | ||
): Rule { |
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.
Nit: why do we need the extra signatures above? The arg typing here looks ok.
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.
cleaner in an IDE and allows for eventual separate jsdoc comments tailored to each overload. The second form may also gain a read options parameter at a later time.
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. |
This adds initial infrastructure, fixes several bugs, and updates several of the Angular schematics. Each schematic update is in a separate commit. Tests needed to be updated to use the async version of the test runner but are otherwise unmodified.