@tomjs/create-app 2.0.0 → 2.0.1

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 CHANGED
@@ -26,40 +26,33 @@ Then generate the project based on the prompts.
26
26
  ```bash
27
27
  $ pnpm create @tomjs/app -h
28
28
 
29
- create tomjs web app
29
+ Create a template based on tomjs node/web/electron/vscode
30
30
 
31
31
  Usage
32
- $ create-app [name] [options]
32
+ $ create-app [options] <dir>
33
33
 
34
- name The package name
34
+ dir Project directory
35
35
 
36
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
44
-
45
- Examples
46
- $ create-app my-project
37
+ -o, --overwrite Overwrite existing project
38
+ -p, --private Set as private project
39
+ --verbose Show verbose logs
40
+ -h, --help Show help information
41
+ -v, --version Show version information
47
42
  ```
48
43
 
49
44
  Support templates:
50
45
 
51
- - vue
52
- - react
53
46
  - electron-vue
54
47
  - electron-react
55
- - node
48
+ - node-base
56
49
  - node-cli
57
- - node-cli-legacy
58
- - node-vite-plugin
59
- - node-workspaces
60
- - vscode
50
+ - node-vite
51
+ - vscode-base
61
52
  - vscode-vue
62
53
  - vscode-react
54
+ - web-vue
55
+ - web-react
63
56
 
64
57
  ## Reference project
65
58
 
package/README.zh_CN.md CHANGED
@@ -26,40 +26,33 @@ npm create @tomjs/app@latest
26
26
  ```bash
27
27
  $ pnpm create @tomjs/app -h
28
28
 
29
- create tomjs web app
29
+ 创建基于 tomjs 的 node/web/electron/vscode 的模板
30
30
 
31
31
  Usage
32
- $ create-app [name] [options]
32
+ $ create-app [options] <dir>
33
33
 
34
- name The package name
34
+ dir 项目目录
35
35
 
36
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
44
-
45
- Examples
46
- $ create-app my-project
37
+ -o, --overwrite 覆盖已存在的目录
38
+ -p, --private 设为私有项目
39
+ --verbose 显示详细日志
40
+ -h, --help 显示帮助信息
41
+ -v, --version 显示版本信息
47
42
  ```
48
43
 
49
44
  支持模板:
50
45
 
51
- - vue
52
- - react
53
46
  - electron-vue
54
47
  - electron-react
55
- - node
48
+ - node-base
56
49
  - node-cli
57
- - node-cli-legacy
58
- - node-vite-plugin
59
- - node-workspaces
60
- - vscode
50
+ - node-vite
51
+ - vscode-base
61
52
  - vscode-vue
62
53
  - vscode-react
54
+ - web-vue
55
+ - web-react
63
56
 
64
57
  ## 参考项目
65
58
 
package/dist/index.js CHANGED
@@ -7,8 +7,7 @@ Usage
7
7
  Options
8
8
  -o, --overwrite ${F(`options.overwrite`)}
9
9
  -p, --private ${F(`options.private`)}
10
- -i, --install ${F(`options.install`)}
11
10
  --verbose ${F(`options.verbose`)}
12
11
  -h, --help ${F(`options.help`)}
13
12
  -v, --version ${F(`options.version`)}
14
- `,{importMeta:import.meta,booleanDefault:void 0,helpIndent:0,flags:{overwrite:{type:`string`},private:{type:`boolean`,shortFlag:`p`},install:{type:`boolean`,shortFlag:`i`},verbose:{type:`boolean`,default:!1},help:{type:`boolean`,shortFlag:`h`},version:{type:`boolean`,shortFlag:`v`}}}),{input:Q,flags:$}=Z;$.help?Z.showHelp(0):$.version?Z.showVersion():(E.enableDebug($.verbose),E.debug(`project dir:`,Q.join()),E.debug(`cli options:`,$),R(Object.assign({dir:Q[0]},$)));export{};
13
+ `,{importMeta:import.meta,booleanDefault:void 0,helpIndent:0,description:F(`app.description`),flags:{overwrite:{type:`string`},private:{type:`boolean`,shortFlag:`p`},verbose:{type:`boolean`,default:!1},help:{type:`boolean`,shortFlag:`h`},version:{type:`boolean`,shortFlag:`v`}}}),{input:Q,flags:$}=Z;$.help?Z.showHelp(0):$.version?Z.showVersion():(E.enableDebug($.verbose),E.debug(`project dir:`,Q.join()),E.debug(`cli options:`,$),R(Object.assign({dir:Q[0]},$)));export{};
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tomjs/create-app",
3
3
  "type": "module",
4
- "version": "2.0.0",
5
- "description": "create tomjs web app",
4
+ "version": "2.0.1",
5
+ "description": "create tomjs web/electron/vscode extension",
6
6
  "author": {
7
7
  "name": "Tom Gao",
8
8
  "email": "tom@tomgao.cc"
@@ -1,4 +1,5 @@
1
1
  {
2
+ "app.description": "Create a project",
2
3
  "options.config": "Configuration file path (e.g., \"./xxx.config.json\")",
3
4
  "options.dir": "Current working directory (default: \".\")",
4
5
  "options.help": "Display help information",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "app.description": "创建一个项目",
2
3
  "options.config": "配置文件路径 (如: \"./xxx.config.json\")",
3
4
  "options.dir": "当前工作目录 (默认: \".\")",
4
5
  "options.help": "显示帮助信息",
@@ -22,6 +22,7 @@ Options
22
22
  importMeta: import.meta,
23
23
  booleanDefault: undefined,
24
24
  helpIndent: 0,
25
+ description: t('app.description'),
25
26
  flags: {
26
27
  dir: {
27
28
  type: 'string',
@@ -1,11 +0,0 @@
1
- {
2
- "options.config": "設定檔路徑 (如: \"./xxx.config.json\")",
3
- "options.dir": "目前工作目錄 (預設: \".\")",
4
- "options.help": "顯示幫助訊息",
5
- "options.verbose": "顯示詳細日誌",
6
- "options.version": "顯示版本資訊",
7
- "prompt.cancel": "操作取消",
8
- "prompt.confirm.no": "否",
9
- "prompt.confirm.yes": "是",
10
- "prompt.public.message": "是否為公開?"
11
- }