Skip to content

Commit 663208d

Browse files
authored
docs: run npx @modern-js/create use latest verison (#3703)
1 parent 25e28a9 commit 663208d

File tree

31 files changed

+47
-47
lines changed

31 files changed

+47
-47
lines changed

packages/document/builder-doc/docs/en/guide/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import NodeVersion from '@en/shared/nodeVersion.md';
1111
**The Modern.js Framework uses Modern.js Builder as its build engine by default**. If you are a business developer, you do not need to manually install Builder, just create a Modern.js project and use all the features provided by Builder.
1212

1313
```bash
14-
npx @modern-js/create my-app
14+
npx @modern-js/create@latest my-app
1515
```
1616

1717
Please refer to [Modern.js - Introduction](https://modernjs.dev/en/guides/get-started/introduction.html) and [Modern.js - Quick Start](https://modernjs.dev/en/guides/get-started/quick-start.html) to learn how to use Modern.js framework.

packages/document/builder-doc/docs/zh/guide/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import NodeVersion from '@zh/shared/nodeVersion.md';
1111
**Modern.js 框架默认使用 Modern.js Builder 作为构建引擎**。因此,如果你是一名业务开发者,那么不需要手动接入 Builder,只需要创建一个 Modern.js 项目,就可以使用 Builder 提供的所有能力。
1212

1313
```bash
14-
npx @modern-js/create my-app
14+
npx @modern-js/create@latest my-app
1515
```
1616

1717
请阅读 [Modern.js - 介绍](https://modernjs.dev/guides/get-started/introduction.html)[Modern.js - 快速上手](https://modernjs.dev/guides/get-started/quick-start.html) 来了解 Modern.js 框架的使用方法。

packages/document/doc-tools-doc/docs/en/guide/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can create a Modern.js Doc project using the Modern.js scaffold command:
88

99
```bash
1010
# `modern-doc-app` is the project name
11-
npx @modern-js/create modern-doc-app
11+
npx @modern-js/create@latest modern-doc-app
1212
```
1313

1414
Select `Doc Site` type and then select the package manager to complete the project creation.

packages/document/doc-tools-doc/docs/zh/guide/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
```bash
1010
# `modern-doc-app` 为项目名称
11-
npx @modern-js/create modern-doc-app
11+
npx @modern-js/create@latest modern-doc-app
1212
```
1313

1414
选择 `文档站` 类型,然后选择包管理工具即可完成项目创建。

packages/document/main-doc/docs/en/components/init-rspack-app.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```bash
2-
$ npx @modern-js/create myapp
2+
$ npx @modern-js/create@latest myapp
33
? Please select the solution you want to create: Web App
44
? Development Language: TS
55
? Package Manager: pnpm

packages/document/main-doc/docs/en/guides/get-started/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ You can create the project in an existing empty directory:
1919

2020
```bash
2121
mkdir myapp && cd myapp
22-
npx @modern-js/create
22+
npx @modern-js/create@latest
2323
```
2424

2525
You can also directly create the project as a new folder:
2626

2727
```bash
28-
npx @modern-js/create myapp
28+
npx @modern-js/create@latest myapp
2929
```
3030

3131
## Initialize

packages/document/main-doc/docs/en/guides/topic-detail/framework-plugin/extend.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Here is a simple example to demonstrate how to extend plugin Hooks by adding Hoo
1313
First, we initialize an empty project file and add basic dependencies:
1414

1515
```bash
16-
$ npx @modern-js/create modern-js-demo
16+
$ npx @modern-js/create@latest modern-js-demo
1717
```
1818

1919
### Creating Hooks

packages/document/main-doc/docs/en/guides/topic-detail/generator/codesmith/develop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ npx @modern-js/codesmith-cli <generatorName>
4848
Where generatorName is the generator package name.
4949

5050
:::info
51-
`@modern-js/create` also supports running micro-generators, you can use `npx @modern-js/create --generator <generatorName>` to run customized micro-generators.
51+
`@modern-js/create` also supports running micro-generators, you can use `npx @modern-js/create@latest --generator <generatorName>` to run customized micro-generators.
5252

5353
:::

packages/document/main-doc/docs/en/guides/topic-detail/generator/plugin/abstract.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Modern.js provides an initialization template that is versatile and can meet som
1010

1111
When you use Modern.js in depth, you will inevitably find that every time you create a project, you will make some similar changes specific to your own project, such as modifying the sample code, adding some configuration, enabling some functions, etc.
1212

13-
The generator plugin can help you precipitate these individual or team-specific changes. Simply bring the `--plugin` parameter when executing `npx @modern-js/create` to avoid the need to repeatedly modify the project every time the project is created..
13+
The generator plugin can help you precipitate these individual or team-specific changes. Simply bring the `--plugin` parameter when executing `npx @modern-js/create@latest` to avoid the need to repeatedly modify the project every time the project is created..
1414

1515
The generator plugin is based on the initialization template project provided by the Modern.js, providing methods to add, delete and modify templates, and modifying `package.json`, `modernConfig` configuration and opening functions in a fast way.
1616

packages/document/main-doc/docs/en/guides/topic-detail/generator/plugin/develop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 3
99
Modern.js provides a generator plugin to create a generator plugin project, you can directly execute the following command to create:
1010

1111
```bash
12-
npx @modern-js/create plugin --plugin @modern-js/generator-plugin-plugin
12+
npx @modern-js/create@latest plugin --plugin @modern-js/generator-plugin-plugin
1313
```
1414

1515
Different plugin types will ask different questions. You can choose the plugin type according to your needs.

0 commit comments

Comments
 (0)