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
|
## Getting Started
|
||||||
|
|
||||||
Use `--preset=@nrwl/rspack` when creating new workspace.
|
Use `--preset=@nx/rspack` when creating new workspace.
|
||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
First, install the plugin:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install --save-dev @nrwl/rspack
|
npm install --save-dev @nx/rspack
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, run the `rspack-project` generator:
|
Then, run the `rspack-project` generator:
|
||||||
|
|
||||||
```bash
|
```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.
|
**Note:** The `--skipValidation` option allows you to overwrite existing build targets.
|
||||||
|
|
||||||
## Workspace libraries
|
## 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
|
```bash
|
||||||
npx nx g @nx/react:lib mylib
|
npx nx g @nx/react:lib mylib
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export default async function (
|
|||||||
tasks.push(createAppTask, convertAppTask);
|
tasks.push(createAppTask, convertAppTask);
|
||||||
} else if (options.framework === 'web') {
|
} else if (options.framework === 'web') {
|
||||||
const { applicationGenerator: webAppGenerator } = ensurePackage(
|
const { applicationGenerator: webAppGenerator } = ensurePackage(
|
||||||
'@nrwl/web',
|
'@nx/web',
|
||||||
nxVersion
|
nxVersion
|
||||||
);
|
);
|
||||||
const createAppTask = await webAppGenerator(tree, {
|
const createAppTask = await webAppGenerator(tree, {
|
||||||
|
|||||||
@ -57,11 +57,11 @@
|
|||||||
},
|
},
|
||||||
"buildTarget": {
|
"buildTarget": {
|
||||||
"type": "string",
|
"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": {
|
"serveTarget": {
|
||||||
"type": "string",
|
"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": {
|
"rootProject": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user