fix(misc): replace missed references to @nrwl scope (#239)
This commit is contained in:
parent
ffb91bcabb
commit
55b24e4e89
10
README.md
10
README.md
@ -10,12 +10,12 @@ This package is a Rspack plugin for Nx.
|
||||
|
||||
## Getting Started
|
||||
|
||||
Use `--preset=@nrwl/rspack` when creating new workspace.
|
||||
Use `--preset=@nx/rspack` when creating new workspace.
|
||||
|
||||
e.g.
|
||||
|
||||
```bash
|
||||
npx create-nx-workspace@latest rspack-demo --preset=@nrwl/rspack
|
||||
npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
|
||||
```
|
||||
|
||||
Now, you can go into the `rspack-demo` folder and start development.
|
||||
@ -40,20 +40,20 @@ You can add Rspack to any existing Nx workspace.
|
||||
First, install the plugin:
|
||||
|
||||
```bash
|
||||
npm install --save-dev @nrwl/rspack
|
||||
npm install --save-dev @nx/rspack
|
||||
```
|
||||
|
||||
Then, run the `rspack-project` generator:
|
||||
|
||||
```bash
|
||||
npx nx g @nrwl/rspack:rspack-project --skipValidation
|
||||
npx nx g @nx/rspack:rspack-project --skipValidation
|
||||
```
|
||||
|
||||
**Note:** The `--skipValidation` option allows you to overwrite existing build targets.
|
||||
|
||||
## Workspace libraries
|
||||
|
||||
The `@nrwl/rspack` executor support importing workspace libs into the app.
|
||||
The `@nx/rspack` executor support importing workspace libs into the app.
|
||||
|
||||
```bash
|
||||
npx nx g @nx/react:lib mylib
|
||||
|
||||
@ -39,7 +39,7 @@ export default async function (
|
||||
tasks.push(createAppTask, convertAppTask);
|
||||
} else if (options.framework === 'web') {
|
||||
const { applicationGenerator: webAppGenerator } = ensurePackage(
|
||||
'@nrwl/web',
|
||||
'@nx/web',
|
||||
nxVersion
|
||||
);
|
||||
const createAppTask = await webAppGenerator(tree, {
|
||||
|
||||
@ -57,11 +57,11 @@
|
||||
},
|
||||
"buildTarget": {
|
||||
"type": "string",
|
||||
"description": "The build target of the project to be transformed to use the @nrwl/vite:build executor."
|
||||
"description": "The build target of the project to be transformed to use the @nx/vite:build executor."
|
||||
},
|
||||
"serveTarget": {
|
||||
"type": "string",
|
||||
"description": "The serve target of the project to be transformed to use the @nrwl/vite:dev-server and @nrwl/vite:preview-server executors."
|
||||
"description": "The serve target of the project to be transformed to use the @nx/vite:dev-server and @nx/vite:preview-server executors."
|
||||
},
|
||||
"rootProject": {
|
||||
"type": "boolean",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user