229 Commits

Author SHA1 Message Date
Leosvel Pérez Espinosa
49c5a73cd0
feat(js): generate experimental simplified library with ts solution setup (#27910)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- 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
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

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

Fixes #

---------

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2024-09-27 14:14:19 -04:00
Emily Xiong
24edc5ad99
fix(core): handle --no-interative for create-nx-workspace (#27702)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- 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
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

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

Fixes #
2024-09-11 15:02:59 -04:00
James Henry
ddec7ad4b0
chore(repo): add valid-command-object lint rule (#27777) 2024-09-05 13:14:04 +04:00
Emily Xiong
f02e2fc76e
fix(core): fix --e2eTestRunner for create-nx-workspace with react native (#27543)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- 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
<!-- This is the behavior we have today -->
--e2eTestRunner option is not working when create-nx-workspace with
preset react native

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
--e2eTestRunner option should be working when create-nx-workspace with
preset react native

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

Fixes #
2024-08-26 18:15:26 -04:00
Jason Jean
087928d1b8
fix(misc): track which CI providers being used (#27320)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- 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
<!-- This is the behavior we have today -->

We don't have information about which CI providers that people are
using.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

We collect information about which CI providers people are using so we
can use it to inform which CI provider we create better integration with
next.

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

Fixes #
2024-08-06 16:55:20 -05:00
Jason Jean
341f2951a8
feat(misc): add onboarding a/b testing (#27217)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- 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
<!-- This is the behavior we have today -->

The onboarding message during `create-nx-workspace` is not ideal.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

We are A/b testing some options for the `create-nx-workspace` onboarding
message.

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

Fixes #
2024-07-30 19:33:38 -04:00
Katerina Skroumpelou
92be32c1a8 feat(nx-cloud): unhide new onboarding flow 2024-06-26 07:50:30 -07:00
Katerina Skroumpelou
f8239debd0
feat(nx-cloud): new cloud onboarding flow (#26262)
New Nx cloud onboarding flow.

![Screenshot 2024-05-30 at 5 29
43 PM](https://github.com/nrwl/nx/assets/6603745/c26f6416-f54b-4b6d-8b3c-4d4c1acfcbb1)

![Screenshot 2024-05-30 at 5 30
18 PM](https://github.com/nrwl/nx/assets/6603745/acb2b1d1-8437-4d8b-8b87-602cc918f12b)

![Screenshot 2024-05-30 at 5 31
26 PM](https://github.com/nrwl/nx/assets/6603745/e6b1f595-e3c1-4c09-83e7-9f71b5383a35)
2024-06-05 12:45:22 +04:00
Emily Xiong
7f11a1d7d3
fix(core): fix preset empty (#26142)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

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

Fixes #
2024-05-27 20:40:17 -04:00
Emily Xiong
c9f3c05ac9
fix(core): keep version for third party preset (#23284)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

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

Fixes https://github.com/nrwl/nx/issues/23174
2024-05-27 15:38:52 -04:00
Jack Hsu
2e621f324c
feat(misc): v19 cleanup for Nx plugins (#23104)
This PR removes deprecated code that's been slated for removal in Nx 19
- mentioned as `TODO(v19)` comments.

## Breaking Changes

- **CNW:** `create-nx-workspace` no longer support `--preset=empty` and
`--preset=core`, use `--preset=apps` and `--preset=npm` respectively.
Deprecated in Nx 15.9.
- **Next.js:** `NX_` environment variables are no longer bundled into
Next.js apps, use `NEXT_PUBLIC` instead. Deprecated in Nx 16.8.
- **Webpack, Storybook, Esbuild:** `NX_` environment variables are no
longer bundled into browser bundles, use `NX_PUBLIC` instead. This
removes the possibility of intentional bundling of `NX_` variables.
Deprecated in Nx 18.
- **Cypress:** `cypressComponentConfiguration` generator removed from
`@nx/cypress`, use `configurationGenerator`instead. Deprecated in Nx
16.8.
- **Cypress:** `cypressProjectGenerator` generator removed from
`@nx/cypress`, use `configurationGenerator` instead. Deprecated in Nx
15.9.
- **Expo:** `withNxWebpack` removed from `@nx/expo`, use [metro
bundler](https://docs.expo.dev/guides/customizing-metro/)
(https://docs.expo.dev/guides/customizing-metro/) in app.json instead.
There is a migration to handle this in Nx 19. Deprecated in Nx 15.8.

## Deferred to v20

- **JS:** `classProperties.loose` option removed from `@nx/js/babel`
preset, use `loose` instead. Deprecated in Nx 17.0.
- **ESLint:** Low priority task to "deviations from
@typescript-eslint/recommended" for our lint rules. @JamesHenry will
look at this later before Nx 20, but it is unimportant.
- **React:** component testing does not work with Project Crystal, and
we need the executor + built-in webpack configs to run CT. Will do a
follow-up on this after Nx 19 release. Related issue:
https://github.com/nrwl/nx/issues/21546
- **Next.js:** `withStylus` removal from `@nx/next`, use SASS instead.
It hasn't worked, but we kept the file to throw an error when used.
Deprecated in Nx 17.0.
- **Next.js**: `@nx/next:component` and `@nx/next:page` generators to
not derive the `components` and `app`/`pages` directory. Use `nx g
@nx/next:component apps/myapp/components/button` instead. Deprecated in
Nx 17.0.
- **Webpack:** `isolatedConfig` option removal from
`@nx/webpack:webpack` executor. There is a migration to handle this in
Nx 19. Deprecated in in Nx 17.2.
- **Angular:** `executeWebpackDevServerBuilder` removal from
`@nx/angular/executors`, use `executeDevServerBuilder` instead.
Deprecated in Nx 17.0.
2024-05-02 13:37:12 -04:00
Colum Ferry
739e2e7115
feat(testing): make playwright default e2e test runner option (#22511) 2024-04-23 11:27:09 -04:00
Emily Xiong
aa6d464694
fix(react-native): should ask for app name when preset is react native (#22761) 2024-04-10 09:42:59 -04:00
Colum Ferry
d7cb6875f9
feat(remix): add option to create-nx-workspace (#22334) 2024-03-15 16:44:25 -04:00
Juri Strumpflohner
587fe6a63b
fix(vue): small typo in CNW description (#21888) 2024-03-04 18:50:24 -05:00
Leosvel Pérez Espinosa
cfa0815385
fix(angular): stop using npmScope as a prefix for component and directive selectors (#21828) 2024-02-21 16:20:12 +01:00
Colum Ferry
3b384c78ac
feat(react): add tailwind as style prompt option for app gen (#21784) 2024-02-14 17:51:37 +00:00
Craigory Coppola
deb0f1a492
chore(repo): bump deprecation messages to v19 (#21430) 2024-01-30 16:29:05 -05:00
Miroslav Jonaš
647f41f395
feat(core): improve nx connect success message (#21295) 2024-01-30 12:41:42 -05:00
beeman
a9974d3f25
docs(misc): change http:// to https:// (#19534) 2024-01-30 11:33:13 -05:00
Miroslav Jonaš
7ab0de8f68
fix(core): yargs array-like prompts initial field is number (#21349) 2024-01-26 10:46:05 -05:00
Katerina Skroumpelou
33e13910b1
fix(core): accept vue as preset in cnw (#21262) 2024-01-22 12:22:33 -05:00
Miroslav Jonaš
d45a13e4fa
feat(core): extend nxCloud prompt to include basic CI workflow options (#21094) 2024-01-18 14:12:31 -05:00
Nicholas Cunningham
c43b22dc88
feat(nextjs): Standalone projects now default to src (#21010) 2024-01-17 11:22:51 -07:00
Katerina Skroumpelou
cec0994cd4
feat(vue): add nuxt as cnw vue framework (#20626) 2023-12-11 10:50:56 +02:00
Leosvel Pérez Espinosa
25d6ec3a92
feat(angular): support angular v17 (#19689) 2023-11-07 15:45:42 -05:00
Katerina Skroumpelou
b3423679c0
feat(nuxt): nuxt executors, generators, docs (#19855) 2023-11-07 19:15:32 +04:00
Craigory Coppola
4dfa45ca24
fix(misc): create-nx-workspace should not log undefined for preset deprecation (#19960) 2023-10-31 18:28:17 -04:00
Katerina Skroumpelou
a09ad2bd62
fix(vue): remove filter from cnw (#19879) 2023-10-26 12:10:09 -04:00
Jack Hsu
f5d7d213de
feat(vue): set @nx/vue as public (#19582) 2023-10-12 17:11:11 -04:00
Jack Hsu
188dc8f2f0
feat(core): hide vue preset options from create-nx-workspace (#19155) 2023-09-13 17:18:04 -04:00
Jack Hsu
769974b45a
feat(vue): init, app, component and lib generators (#19130)
Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
2023-09-13 15:05:10 -04:00
Jack Hsu
c9ea9e076f
feat(core): ensure @nx/js plugin is installed for all JS workspaces (#18919) 2023-08-30 18:24:48 -04:00
Juri
3ddb188fa3 docs(nx-plugin): add recipe for creating and testing a create-x package
Co-authored-by: AgentEnder <craigorycoppola@gmail.com>
2023-08-11 20:21:11 +02:00
Emily Xiong
ed300d5f82
feat(testing): prompt e2eTestRunner playwright (#18203) 2023-08-04 11:14:59 -04:00
Jack Hsu
36cd6b0485
fix(core): generate npm preset correctly (#18164) 2023-07-18 14:27:14 -04:00
Jack Hsu
0040520bb0
feat(core): merge None and TS stacks into one since they are both for TS/JS projects (#18108) 2023-07-18 09:42:07 -04:00
Leosvel Pérez Espinosa
09e5b03e52
fix(core): determine workspace type when creating workspace passing "angular" or "react" as preset (#17724) 2023-06-22 09:31:45 -04:00
CHC
b34da2ca42
fix(docs): update url for fastify (#17669) 2023-06-19 14:10:59 -04:00
Jack Hsu
a19fbb1ddb
feat(js): add preset for TS standalone workspace (#17467) 2023-06-13 14:32:06 -04:00
Isaac Mann
e693642c35
docs(core): update preset link (#17153) 2023-06-06 16:22:25 -04:00
Jack Hsu
5afe34e5d3 fix(core): change "minimal" stack to "none" 2023-05-31 12:00:20 -04:00
Jack Hsu
231b9dfd61 fix(core): remove extraneous appName prompts for Node standalone in CNW; remove invariant check for determining stack 2023-05-31 08:41:51 -04:00
Jack Hsu
a722302caf
feat(misc): rework create-nx-workspace prompts (#17230) 2023-05-30 18:13:42 -04:00
Colum Ferry
4106b3455b
docs(node): node-standalone should be listed not node-server (#17062) 2023-05-17 15:24:06 -04:00
Jack Hsu
95421c6945
feat(nextjs): update Next.js to 13.4.1 and default to App Router for new apps (#16948) 2023-05-12 16:09:20 -04:00
Jason Jean
7b0f96b1ba
feat(nx-plugin): simplify generated plugin code (#16590) 2023-04-26 18:38:04 -04:00
Emily Xiong
840048480f
feat(core): update create-nx-plugin to generate cli library (#15994) 2023-04-19 20:36:11 -04:00
Nicholas Cunningham
338dc64d91
feat(nextjs): Add standalone Nextjs option to react selection when running CNW (#16317) 2023-04-19 15:29:31 -04:00
Jack Hsu
f04f316271
feat(react): add rspack experimental support (#16252) 2023-04-19 14:00:24 -04:00