Skip to content

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

Merged
merged 14 commits into from
Apr 15, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 10, 2019

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.

@clydin clydin added the target: major This PR is targeted for the next major release label Apr 10, 2019
@clydin clydin force-pushed the workspace-schematics branch 4 times, most recently from b838df0 to a331b7c Compare April 11, 2019 18:06
@clydin clydin force-pushed the workspace-schematics branch 4 times, most recently from 5bb54d1 to 879a66b Compare April 13, 2019 03:08
clydin added 14 commits April 13, 2019 19:20
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.
@clydin clydin force-pushed the workspace-schematics branch from 879a66b to 4970bed Compare April 13, 2019 23:21
@clydin clydin requested a review from filipesilva April 14, 2019 23:46
Copy link
Contributor

@filipesilva filipesilva left a 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 {
Copy link
Contributor

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.

Copy link
Member Author

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.

@alexeagle alexeagle merged commit f1c58be into angular:master Apr 15, 2019
@clydin clydin deleted the workspace-schematics branch April 15, 2019 18:03
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants