create-jnrs-template-vue 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/bin/create.js +6 -0
- package/jnrs-template-vue/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,13 +7,18 @@
|
|
|
7
7
|
TypeScript、Vue3 生态
|
|
8
8
|
|
|
9
9
|
## 🧩 安装使用说明
|
|
10
|
-
jnrs-app-vue 是你的新项目名称
|
|
10
|
+
「jnrs-app-vue」 是你的新项目名称
|
|
11
11
|
```shell
|
|
12
|
+
✅ 正确用法
|
|
12
13
|
pnpm create jnrs-template-vue@latest jnrs-app-vue
|
|
14
|
+
|
|
13
15
|
cd jnrs-app-vue
|
|
14
16
|
pnpm i
|
|
15
17
|
pnpm dev
|
|
16
18
|
pnpm build
|
|
19
|
+
|
|
20
|
+
❌ 错误用法(不要这样做!)
|
|
21
|
+
pnpm add create-jnrs-template-vue
|
|
17
22
|
```
|
|
18
23
|
|
|
19
24
|
#### 项目结构
|
package/bin/create.js
CHANGED
|
@@ -5,6 +5,12 @@ import { execSync, spawnSync } from 'child_process'
|
|
|
5
5
|
import minimist from 'minimist'
|
|
6
6
|
import prompts from 'prompts'
|
|
7
7
|
|
|
8
|
+
if (require.main !== module) {
|
|
9
|
+
console.error('❌ 此软件包是一个 CLI 工具,不要将其作为依赖项安装!')
|
|
10
|
+
console.error('✅ 正确用法:pnpm create jnrs-template-vue@latest jnrs-app-vue')
|
|
11
|
+
process.exit(1)
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
const __filename = fileURLToPath(import.meta.url)
|
|
9
15
|
const __dirname = dirname(__filename)
|
|
10
16
|
|