52 Commits

Author SHA1 Message Date
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
Jordan Hall
80702b59c7
feat(core): add bun package manager (#22602)
Bun uses yarn lock for it's binary file. Running the binary will produce
the content of a yarn lock file (v1)

Other option is to use the -y command on add and install. This will
create a yarn lock file and then createLockFile can just modify the
yarn.lock file instead?

This is the PR made from #19113 and pushed due to #22402 being closed.

PS Bun feels more stable since the PR was first created!

This PR will resolve #22283 and start of #21075
2024-05-22 16:51:21 -04:00
Leosvel Pérez Espinosa
fd71b6bcab
cleanup(misc): improve check for whether stats should be recorded (#23234)
<!-- 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-10 11:22:06 -04:00
Leosvel Pérez Espinosa
4cc3dc6960
fix(misc): create workspaces and default app with the name as provided (#23196)
<!-- 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 #19253
2024-05-08 17:33:47 +04:00
Leosvel Pérez Espinosa
d1c4073809
feat(misc): improve nx cloud setup prompts and messaging (#23218)
<!-- 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-07 11:36:29 -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
Lucca Miranda
134cbbc23c
fix(core): improve isCI to better detect other providers (#22694) 2024-04-12 19:04:02 -04:00
Colum Ferry
d7cb6875f9
feat(remix): add option to create-nx-workspace (#22334) 2024-03-15 16:44:25 -04:00
Isaac Mann
650dcf31af
docs(core): npm workspace tutorial (#22018) 2024-03-08 15:01:49 -05:00
Miroslav Jonaš
ecf70adbce
fix(core): align terminal output padding and remove leading arrow (#21809) 2024-02-20 17:43:46 +01:00
James Henry
30d10d72f7
Revert "feat(core): remove leading arrow from output headlines" (#21800) 2024-02-13 09:40:24 -05:00
Miroslav Jonaš
c2a09c5043
feat(core): remove leading arrow from output headlines (#21359) 2024-02-13 09:11:39 -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
Isaac Mann
595a7743b6
docs(core): rename distributed cache to remote cache (#21061) 2024-01-11 18:14:44 +00:00
Miroslav Jonaš
20dcc97099
fix(nx-dev): standardize nx cloud naming (#21059) 2024-01-10 13:09:42 +01:00
Katerina Skroumpelou
b3423679c0
feat(nuxt): nuxt executors, generators, docs (#19855) 2023-11-07 19:15:32 +04:00
Miroslav Jonaš
80ade9354b
fix(core): ensure CNW works without .yarnrc with custom registry (#18937) 2023-10-18 09:15:55 -04:00
Jason Jean
d62acecec6
feat(core): allow using Nx Cloud without nx-cloud installed (#19553) 2023-10-13 10:47:43 -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
Miroslav Jonaš
7d55f49e7d
fix(core): use existing version when calling "yarn set version" (#18669) 2023-08-17 10:28:29 -04:00
Miroslav Jonas
7280cb0f72 fix(nx-dev): fix broken redirects after nesting tutorials 2023-07-19 16:36:18 +02:00
Victor Savkin
57b2a76007
fix(misc): stat collector filters out version 16 (#18149) 2023-07-17 16:15:14 -04:00
Miroslav Jonaš
10fc4dd4d8
fix(core): ensure proper yarn version detection even for nested projects (#18052) 2023-07-17 10:35:18 -04:00
Miroslav Jonaš
d0c37727c5
fix(core): ensure yarn runs install with correct version (#17997) 2023-07-07 09:19:04 -04:00
Jack Hsu
a19fbb1ddb
feat(js): add preset for TS standalone workspace (#17467) 2023-06-13 14:32:06 -04:00
Jack Hsu
a722302caf
feat(misc): rework create-nx-workspace prompts (#17230) 2023-05-30 18:13:42 -04:00
Leosvel Pérez Espinosa
cc9e650cd8
fix(misc): ensure workspace directory is normalized correctly (#16855) 2023-05-08 17:39:36 -04:00
Craigory Coppola
a8aeca46f8
fix(misc): use generated directory path as cwd rather than attempting to rederive it (#16740) 2023-05-03 16:47:26 -04:00
Jason Jean
7b0f96b1ba
feat(nx-plugin): simplify generated plugin code (#16590) 2023-04-26 18:38:04 -04:00
Craigory Coppola
ddf613c481
fix(misc): create-nx-workspace should display short error messages (#16474) 2023-04-21 21:26:11 +00:00
Craigory Coppola
04a0c7734f
fix(misc): create-nx-workspace should work with custom presets on windows (#16473) 2023-04-21 16:53:23 -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
Jason Jean
4ee1ba56e7
fix(core): replace @nrwl with @nx in nx core packages (#16344) 2023-04-17 17:28:40 -04:00
Craigory Coppola
64282949d4
feat(misc): make createWorkspace quieter by default (#16202) 2023-04-17 17:44:13 +00:00
Victor Savkin
1fb9edc460 feat(core): support both @nrwl/nx-cloud and nx-cloud 2023-04-13 10:59:31 -04:00
Jason Jean
afcf7ba19f
feat(core): remove usage of --legacy-peer-deps (#16271) 2023-04-12 16:31:46 -04:00
Victor Savkin
4d01b61c7b
fix(core): update links shown after create-nx-workspace 2023-04-10 15:35:51 -04:00
Juri
7989facc85 docs(core): what is Nx 2023-04-10 13:05:41 -04:00
Craigory Coppola
6e7234c1aa
feat(nx-plugin): reuse utilities from create-nx-workspace for create-nx-plugin (#15743) 2023-03-31 17:23:21 -04:00
Craigory Coppola
778400b1cf
fix(misc): create-nx-workspace should show some stdout if stderr empty on error (#16020) 2023-03-31 16:27:37 -04:00
Craigory Coppola
5d51ed9be5
fix(misc): create-nx-workspace errors should display properly (#15988) 2023-03-30 18:27:36 -04:00
Jack Hsu
874b6a5e49
feat(node): add --framework=none to create-nx-workspace for Node projects (#15929) 2023-03-29 11:27:25 -04:00
Emily Xiong
24cb81d9ba
feat(core): set interactive true for create-nx-workspace (#15863) 2023-03-23 16:38:39 -04:00
Craigory Coppola
7d61ae238b
fix(misc): prevent --quiet and --verbose from both being true (#15836) 2023-03-23 10:47:43 -04:00