@tomjs/create-app 0.4.0 → 0.4.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 +14 -28
- package/README.zh_CN.md +14 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,51 +1,37 @@
|
|
|
1
1
|
# @tomjs/create-app
|
|
2
2
|
|
|
3
|
-
 + [tomjs](https://github.com/tomgao365/tomjs).
|
|
3
|
+
  
|
|
6
4
|
|
|
7
5
|
**English** | [中文](./README.zh_CN.md)
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
> Create a web application based on [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomgao365/tomjs).
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
## Creating a Project
|
|
12
10
|
|
|
13
11
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- Using `yarn`
|
|
12
|
+
# pnpm
|
|
13
|
+
pnpm create @tomjs/app
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
# yarn
|
|
20
16
|
yarn create @tomjs/app
|
|
21
|
-
```
|
|
22
17
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
pnpm create @tomjs/app
|
|
18
|
+
# npm
|
|
19
|
+
npm create @tomjs/app@latest
|
|
27
20
|
```
|
|
28
21
|
|
|
29
22
|
Then generate the project based on the prompts.
|
|
30
23
|
|
|
31
|
-
You can also directly specify the project name, template
|
|
32
|
-
|
|
33
|
-
- Using `npm`
|
|
24
|
+
You can also directly specify the project name, template.
|
|
34
25
|
|
|
35
26
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
- Using `yarn`
|
|
27
|
+
# pnpm
|
|
28
|
+
pnpm create @tomjs/app my-app --template vue
|
|
40
29
|
|
|
41
|
-
|
|
30
|
+
# yarn
|
|
42
31
|
yarn create @tomjs/app my-app --template vue
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
- Using `pnpm`
|
|
46
32
|
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
# npm 7+, extra double-dash is needed:
|
|
34
|
+
npm create @tomjs/app@latest my-app -- --template vue
|
|
49
35
|
```
|
|
50
36
|
|
|
51
37
|
Parameters:
|
package/README.zh_CN.md
CHANGED
|
@@ -1,52 +1,37 @@
|
|
|
1
1
|
# @tomjs/create-app
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[English](./README.md) | **中文**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
  
|
|
6
6
|
|
|
7
|
-
[
|
|
7
|
+
> 创建基于 [vite](https://github.com/vitejs/vite) + [tomjs](https://github.com/tomgao365/tomjs) 的 web 应用。
|
|
8
8
|
|
|
9
9
|
## 创建项目
|
|
10
10
|
|
|
11
|
-
- 使用 `npm`
|
|
12
|
-
|
|
13
11
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- 使用 `yarn`
|
|
12
|
+
# pnpm
|
|
13
|
+
pnpm create @tomjs/app
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
# yarn
|
|
20
16
|
yarn create @tomjs/app
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
- 使用 `pnpm`
|
|
24
17
|
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
# npm
|
|
19
|
+
npm create @tomjs/app@latest
|
|
27
20
|
```
|
|
28
21
|
|
|
29
22
|
然后根据提示生成项目。
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- 使用 `npm`
|
|
24
|
+
你也可以直接指定项目名、模板。
|
|
34
25
|
|
|
35
26
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
- 使用 `yarn`
|
|
27
|
+
# pnpm
|
|
28
|
+
pnpm create @tomjs/app my-app --template vue
|
|
41
29
|
|
|
42
|
-
|
|
30
|
+
# yarn
|
|
43
31
|
yarn create @tomjs/app my-app --template vue
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
- 使用 `pnpm`
|
|
47
32
|
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
# npm 7+,需要额外的双破折号:
|
|
34
|
+
npm create @tomjs/app@latest my-app -- --template vue
|
|
50
35
|
```
|
|
51
36
|
|
|
52
37
|
参数说明:
|