@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 +13 -20
- package/README.zh_CN.md +13 -20
- package/dist/index.js +1 -2
- package/package.json +2 -2
- package/templates/node-cli/locales/en-US.json +1 -0
- package/templates/node-cli/locales/{zh-Hans.json → zh-CN.json} +1 -0
- package/templates/node-cli/src/index.ts +1 -0
- package/templates/node-cli/locales/zh-Hant.json +0 -11
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
|
-
|
|
29
|
+
Create a template based on tomjs node/web/electron/vscode
|
|
30
30
|
|
|
31
31
|
Usage
|
|
32
|
-
$ create-app [
|
|
32
|
+
$ create-app [options] <dir>
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
dir Project directory
|
|
35
35
|
|
|
36
36
|
Options
|
|
37
|
-
--
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
--
|
|
41
|
-
--
|
|
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-
|
|
58
|
-
-
|
|
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
|
-
|
|
29
|
+
创建基于 tomjs 的 node/web/electron/vscode 的模板
|
|
30
30
|
|
|
31
31
|
Usage
|
|
32
|
-
$ create-app [
|
|
32
|
+
$ create-app [options] <dir>
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
dir 项目目录
|
|
35
35
|
|
|
36
36
|
Options
|
|
37
|
-
--
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
--
|
|
41
|
-
--
|
|
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-
|
|
58
|
-
-
|
|
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`},
|
|
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.
|
|
5
|
-
"description": "create tomjs web
|
|
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,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
|
-
}
|