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.
42 KiB
42 KiB
-
Nx
- Getting Started
- Core Tutorial
- Features
- Concepts
- Recipes
- Installation
- Tasks & Caching
- Adopting Nx
- React
- Angular
- Node
- Storybook
- Set up Storybook for React Projects
- Set up Storybook for Angular Projects
- Set up Storybook for Vue Projects
- Configuring Storybook on Nx
- One main Storybook instance for all projects
- One Storybook instance per scope
- One main Storybook instance using Storybook Composition
- How to configure Webpack and Vite for Storybook
- Setting up Storybook Interaction Tests with Nx
- Upgrading Storybook using the Storybook CLI
- Setting up Storybook Composition with Nx
- Angular: Set up Compodoc for Storybook on Nx
- Angular: Configuring styles and preprocessor options
- Cypress
- Next
- Nuxt
- Vite
- Webpack
- Module Federation
- Enforce Module Boundaries
- Tips and tricks
- Add a Package-based Project in an Integrated Repo
- Add an Integrated Project in a Package-based Repo
- Convert from a Standalone Repository to an Integrated Repository
- Configuring ESLint with Typescript
- Enable Typescript Batch Mode
- Define Secondary Entrypoints for Typescript Packages
- Compile Typescript Packages to Multiple Formats
- Keep Nx Versions in Sync
- Define Environment Variables
- Configuring Browser Support
- Include Assets in Build
- Include All package.json Files as Projects
- Identify Dependencies Between Folders
- Disable Graph Links Created from Analyzing Source Files
- Use JavaScript instead TypeScript
- Altering Migration Process
- Using Yarn PnP
- Switching to ESLint's flat config format
- Nx Console
- Nx Release
- Other
- Showcase
- Reference
- Troubleshooting
- Deprecated
- See Also
-
Extending-nx
-
Ci
-
Nx-api
- angular
- documents
- executors
- generators
- add-linting
- application
- component
- component-cypress-spec
- component-story
- component-test
- convert-to-application-executor
- directive
- federate-module
- init
- library
- library-secondary-entry-point
- remote
- move
- convert-to-with-mf
- host
- ng-add
- ngrx
- ngrx-feature-store
- ngrx-root-store
- pipe
- scam-to-standalone
- scam
- scam-directive
- scam-pipe
- setup-mf
- setup-ssr
- setup-tailwind
- stories
- storybook-configuration
- cypress-component-configuration
- web-worker
- create-nx-plugin
- create-nx-workspace
- cypress
- detox
- devkit
- esbuild
- eslint
- eslint-plugin
- expo
- express
- gradle
- jest
- js
- nest
- next
- node
- nuxt
- nx
- playwright
- plugin
- react
- react-native
- remix
- rollup
- storybook
- tao
- vite
- vue
- web
- webpack
- workspace
- angular