@tomjs/create-app 0.0.2 → 0.0.5

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
@@ -53,6 +53,11 @@ Parameters:
53
53
  - `-t --template` : specify the template, optional values: `vue` , `react`
54
54
  - `-m --module` : `package.json` uses `type:"module"`, otherwise use `commonjs`
55
55
 
56
+ Support templates:
57
+
58
+ - vue
59
+ - react
60
+
56
61
  ## Reference project
57
62
 
58
63
  - [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite)
package/README.zh_CN.md CHANGED
@@ -54,6 +54,11 @@ pnpm create @tomjs/app my-app --template vue --module
54
54
  - `-t --template`:指定模板,可选值:`vue`、`react`
55
55
  - `-m --module`:`package.json` 使用 `type:"module"`,否则使用 `commonjs`
56
56
 
57
+ 支持模板:
58
+
59
+ - vue
60
+ - react
61
+
57
62
  ## 项目配置
58
63
 
59
64
  项目配置在 `package.json` 中,可配置项如下:
package/package.json CHANGED
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "name": "@tomjs/create-app",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "create tomjs web app",
5
5
  "keywords": [
6
6
  "tomjs",
7
7
  "front-end",
8
8
  "create",
9
- "app"
9
+ "app",
10
+ "vite",
11
+ "vue",
12
+ "react"
10
13
  ],
11
14
  "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/tomgao365/create-app.git"
18
+ },
12
19
  "publishConfig": {
13
20
  "access": "public",
14
21
  "registry": "https://registry.npmjs.org"
@@ -55,7 +62,6 @@
55
62
  "lint": "run-s lint:eslint lint:prettier",
56
63
  "lint:eslint": "eslint \"src/**/*.{js,cjs,ts}\" *.{js,cjs,ts} --fix --cache",
57
64
  "lint:prettier": "prettier --write \"src/**/*.{js,cjs,ts,json,md}\" *.{js,cjs,ts,json,md}",
58
- "release": "np --any-branch --no-yarn --yolo --no-publish --message \"chore: release v%s\"",
59
- "prepublish": "npm run build"
65
+ "release": "np --any-branch --no-yarn --yolo --no-publish --message \"chore: release v%s\""
60
66
  }
61
67
  }