@tomjs/create-app 1.5.2 → 1.5.3

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.
Files changed (3) hide show
  1. package/README.md +19 -12
  2. package/README.zh_CN.md +19 -12
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  > Create a web application based on [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomjs).
8
8
 
9
+ This is only provided to [@tomjs](https://github.com/tomjs) and is not recommended for others to use.
10
+
9
11
  ## Creating a Project
10
12
 
11
13
  ```bash
@@ -21,23 +23,28 @@ npm create @tomjs/app@latest
21
23
 
22
24
  Then generate the project based on the prompts.
23
25
 
24
- You can also directly specify the project name, template.
25
-
26
26
  ```bash
27
- # pnpm
28
- pnpm create @tomjs/app my-app --template vue
27
+ $ pnpm create @tomjs/app -h
29
28
 
30
- # yarn
31
- yarn create @tomjs/app my-app --template vue
29
+ create tomjs web app
32
30
 
33
- # npm 7+, extra double-dash is needed:
34
- npm create @tomjs/app@latest my-app -- --template vue
35
- ```
31
+ Usage
32
+ $ create-app [name] [options]
33
+
34
+ name The package name
36
35
 
37
- Parameters:
36
+ Options
37
+ --cwd The current working directory (default: ".")
38
+ -e, --example Only create examples
39
+ -p, --package Only create packages
40
+ --git Only manage git repository
41
+ --verbose Display verbose output
42
+ -h, --help Display this message
43
+ -v, --version Display version number
38
44
 
39
- - `-t --template` : specify the template
40
- - `--git`:git repository setting
45
+ Examples
46
+ $ create-app my-project
47
+ ```
41
48
 
42
49
  Support templates:
43
50
 
package/README.zh_CN.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  > 创建基于 [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomjs) 的 web 应用。
8
8
 
9
+ 仅提供给 [@tomjs](https://github.com/tomjs) 使用,不推荐他人使用。
10
+
9
11
  ## 创建项目
10
12
 
11
13
  ```bash
@@ -21,23 +23,28 @@ npm create @tomjs/app@latest
21
23
 
22
24
  然后根据提示生成项目。
23
25
 
24
- 你也可以直接指定项目名、模板。
25
-
26
26
  ```bash
27
- # pnpm
28
- pnpm create @tomjs/app my-app --template vue
27
+ $ pnpm create @tomjs/app -h
29
28
 
30
- # yarn
31
- yarn create @tomjs/app my-app --template vue
29
+ create tomjs web app
32
30
 
33
- # npm 7+,需要额外的双破折号:
34
- npm create @tomjs/app@latest my-app -- --template vue
35
- ```
31
+ Usage
32
+ $ create-app [name] [options]
33
+
34
+ name The package name
36
35
 
37
- 参数说明:
36
+ Options
37
+ --cwd The current working directory (default: ".")
38
+ -e, --example Only create examples
39
+ -p, --package Only create packages
40
+ --git Only manage git repository
41
+ --verbose Display verbose output
42
+ -h, --help Display this message
43
+ -v, --version Display version number
38
44
 
39
- - `-t --template`:指定模板
40
- - `--git`:git 仓库配置
45
+ Examples
46
+ $ create-app my-project
47
+ ```
41
48
 
42
49
  支持模板:
43
50
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tomjs/create-app",
3
3
  "type": "module",
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "description": "create tomjs web app",
6
6
  "keywords": [
7
7
  "tomjs",
@@ -17,6 +17,8 @@
17
17
  "vue",
18
18
  "react",
19
19
  "electron",
20
+ "vscode",
21
+ "web",
20
22
  "node"
21
23
  ],
22
24
  "author": {