Skip to content

feat(core): update CNW defaults so they generate a useful workspace by default#29915

Merged
FrozenPandaz merged 1 commit intomasterfrom
fix/cnw-defaults
Feb 7, 2025
Merged

feat(core): update CNW defaults so they generate a useful workspace by default#29915
FrozenPandaz merged 1 commit intomasterfrom
fix/cnw-defaults

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Feb 6, 2025

This PR fixes some inconsistencies when generating a TS solution workspace (e.g. npx create-nx-workspace --workspace).

If the user chooses None stack (or --preset=ts), then we continue to default to no Prettier (and ESLint, etc.). However, for React, Vue, and Node, we want the defaults to be useful for users to run lint, test, etc. Thus, they are now updated the default does not opt out of any tooling, but users can still choose no to any of them.

Current Behavior

The defaults for React, Vue, Node are inconsistent (e2e runner is there by default, but not unit test runner, etc.)

Expected Behavior

Defaults are consistent and useful, especially for tutorials.

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 6, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Feb 6, 2025 6:05pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Feb 6, 2025

View your CI Pipeline Execution ↗ for commit fc3d5f3.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 26m 15s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 12s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 10s View ↗
nx documentation ✅ Succeeded 2m 34s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-06 18:39:31 UTC

@FrozenPandaz FrozenPandaz merged commit 6a65db8 into master Feb 7, 2025
@FrozenPandaz FrozenPandaz deleted the fix/cnw-defaults branch February 7, 2025 16:12
FrozenPandaz pushed a commit that referenced this pull request Feb 8, 2025
…y default (#29915)

This PR fixes some inconsistencies when generating a TS solution
workspace (e.g. `npx create-nx-workspace --workspace`).

If the user chooses `None` stack (or `--preset=ts`), then we continue to
default to no Prettier (and ESLint, etc.). However, for React, Vue, and
Node, we want the defaults to be useful for users to run lint, test,
etc. Thus, they are now updated the default does not opt out of any
tooling, but users can still choose no to any of them.

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
The defaults for React, Vue, Node are inconsistent (e2e runner is there
by default, but not unit test runner, etc.)

## Expected Behavior
Defaults are consistent and useful, especially for tutorials.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 6a65db8)
isaacplmann pushed a commit that referenced this pull request Feb 11, 2025
…y default (#29915)

This PR fixes some inconsistencies when generating a TS solution
workspace (e.g. `npx create-nx-workspace --workspace`).

If the user chooses `None` stack (or `--preset=ts`), then we continue to
default to no Prettier (and ESLint, etc.). However, for React, Vue, and
Node, we want the defaults to be useful for users to run lint, test,
etc. Thus, they are now updated the default does not opt out of any
tooling, but users can still choose no to any of them.

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
The defaults for React, Vue, Node are inconsistent (e2e runner is there
by default, but not unit test runner, etc.)

## Expected Behavior
Defaults are consistent and useful, especially for tutorials.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
@github-actions
Copy link
Copy Markdown
Contributor

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 Feb 13, 2025
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.

2 participants