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