Skip to content
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

feat(nx-plugin): reuse utilities from create-nx-workspace for create-nx-plugin #15743

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

AgentEnder
Copy link
Member

@AgentEnder AgentEnder commented Mar 17, 2023

Current Behavior

create-nx-plugin creates a monorepo containing one plugin

Expected Behavior

create-nx-plugin creates a repository containing a plugin as the base project

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Mar 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 31, 2023 at 8:57PM (UTC)

@@ -144,16 +146,16 @@ function normalizeOptions(
return {
...base,
executorsJson: base.executorsJson
? `${sourceProject.data.root}/${base.executorsJson}`
? resolve(`${sourceProject.data.root}/${base.executorsJson}`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to do much?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would change the paths to be absolute. Was there a bug before this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll double check if this is still needed - there was an issue when generating an Nx plugin at the root level that the lint rule was comparing ./generators.json with generators.json

packages/nx-plugin/src/generators/preset/generator.spec.ts Outdated Show resolved Hide resolved
@AgentEnder AgentEnder requested a review from juristr as a code owner March 24, 2023 20:47
Copy link
Contributor

@meeroslav meeroslav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment regarding e2e test

packages/nx-plugin/generators.json Outdated Show resolved Hide resolved
packages/nx-plugin/src/generators/preset/schema.json Outdated Show resolved Hide resolved
@AgentEnder AgentEnder force-pushed the feat/create-nx-plugin-standalone branch from 78eb03f to c8bddc3 Compare March 31, 2023 20:54
@AgentEnder AgentEnder merged commit 6e7234c into nrwl:master Mar 31, 2023
@AgentEnder AgentEnder deleted the feat/create-nx-plugin-standalone branch March 31, 2023 21:23
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants