@tomjs/create-app 0.4.6 → 0.5.0
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/package.json +1 -1
- package/template-config/_gitignore +1 -0
- package/template-electron-react/README.md +5 -3
- package/template-electron-react/package.json +4 -7
- package/template-electron-react/vite.config.ts +1 -1
- package/template-electron-vue/README.md +5 -3
- package/template-electron-vue/package.json +4 -7
- package/template-electron-vue/vite.config.ts +1 -1
- package/template-node/package.json +1 -1
- package/template-react/package.json +1 -1
- package/template-vue/package.json +1 -1
package/package.json
CHANGED
|
@@ -8,11 +8,13 @@ vite + electron + react
|
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
|--electron
|
|
11
|
-
| |--main
|
|
11
|
+
| |--main // main process code
|
|
12
12
|
| | |--index.ts
|
|
13
|
-
| |--preload
|
|
13
|
+
| |--preload // preload process code
|
|
14
14
|
| | |--index.ts
|
|
15
|
-
|--
|
|
15
|
+
| |--build // electron-builder resources for electron package
|
|
16
|
+
| | |--icons
|
|
17
|
+
|--src // front-end code
|
|
16
18
|
| |--App.tsx
|
|
17
19
|
| |--main.ts
|
|
18
20
|
```
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18"
|
|
8
8
|
},
|
|
9
|
-
"main": "dist/main/index.
|
|
9
|
+
"main": "dist/main/index.js",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite",
|
|
12
|
-
"build": "npm run clean && vite build
|
|
13
|
-
"release": "tsx ./scripts/release.ts",
|
|
12
|
+
"build": "npm run clean && vite build",
|
|
14
13
|
"clean": "rimraf ./dist",
|
|
15
14
|
"lint": "run-s lint:eslint lint:stylelint lint:prettier",
|
|
16
15
|
"lint:eslint": "eslint \"{src,electron,scripts}/**/*.{ts,tsx}\" *.{js,cjs,ts} --fix --cache",
|
|
@@ -30,11 +29,10 @@
|
|
|
30
29
|
"@tomjs/prettier": "^1.0.6",
|
|
31
30
|
"@tomjs/stylelint": "^1.1.1",
|
|
32
31
|
"@tomjs/tsconfig": "^1.1.2",
|
|
33
|
-
"@tomjs/vite-plugin-electron": "^1.
|
|
32
|
+
"@tomjs/vite-plugin-electron": "^1.5.0",
|
|
34
33
|
"@types/node": "^18.19.3",
|
|
35
34
|
"@types/react": "^18.2.43",
|
|
36
35
|
"@types/react-dom": "^18.2.17",
|
|
37
|
-
"@types/shelljs": "^0.8.15",
|
|
38
36
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
39
37
|
"electron": "^28.0.0",
|
|
40
38
|
"electron-builder": "^24.9.1",
|
|
@@ -44,11 +42,10 @@
|
|
|
44
42
|
"npm-run-all": "^4.1.5",
|
|
45
43
|
"prettier": "^3.1.1",
|
|
46
44
|
"rimraf": "^5.0.5",
|
|
47
|
-
"shelljs": "^0.8.5",
|
|
48
45
|
"stylelint": "^15.11.0",
|
|
49
46
|
"tsx": "^4.6.2",
|
|
50
47
|
"typescript": "~5.2.2",
|
|
51
|
-
"vite": "^5.0.
|
|
48
|
+
"vite": "^5.0.8",
|
|
52
49
|
"vite-plugin-electron-renderer": "^0.14.5"
|
|
53
50
|
}
|
|
54
51
|
}
|
|
@@ -8,11 +8,13 @@ vite + electron + vue
|
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
|--electron
|
|
11
|
-
| |--main
|
|
11
|
+
| |--main // main process code
|
|
12
12
|
| | |--index.ts
|
|
13
|
-
| |--preload
|
|
13
|
+
| |--preload // preload process code
|
|
14
14
|
| | |--index.ts
|
|
15
|
-
|--
|
|
15
|
+
| |--build // electron-builder resources for electron package
|
|
16
|
+
| | |--icons
|
|
17
|
+
|--src // front-end code
|
|
16
18
|
| |--App.vue
|
|
17
19
|
| |--main.ts
|
|
18
20
|
```
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18"
|
|
8
8
|
},
|
|
9
|
-
"main": "dist/main/index.
|
|
9
|
+
"main": "dist/main/index.js",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite",
|
|
12
|
-
"build": "npm run clean && vue-tsc --noEmit && vite build
|
|
13
|
-
"release": "tsx ./scripts/release.ts",
|
|
12
|
+
"build": "npm run clean && vue-tsc --noEmit && vite build",
|
|
14
13
|
"clean": "rimraf ./dist",
|
|
15
14
|
"lint": "run-s lint:eslint lint:stylelint lint:prettier",
|
|
16
15
|
"lint:eslint": "eslint \"{src,electron,scripts}/**/*.{js,cjs,ts,vue}\" *.{js,cjs,ts} --fix --cache",
|
|
@@ -29,9 +28,8 @@
|
|
|
29
28
|
"@tomjs/prettier": "^1.0.6",
|
|
30
29
|
"@tomjs/stylelint": "^1.1.1",
|
|
31
30
|
"@tomjs/tsconfig": "^1.1.2",
|
|
32
|
-
"@tomjs/vite-plugin-electron": "^1.
|
|
31
|
+
"@tomjs/vite-plugin-electron": "^1.5.0",
|
|
33
32
|
"@types/node": "^18.19.3",
|
|
34
|
-
"@types/shelljs": "^0.8.15",
|
|
35
33
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
36
34
|
"electron": "^28.0.0",
|
|
37
35
|
"electron-builder": "^24.9.1",
|
|
@@ -41,11 +39,10 @@
|
|
|
41
39
|
"npm-run-all": "^4.1.5",
|
|
42
40
|
"prettier": "^3.1.1",
|
|
43
41
|
"rimraf": "^5.0.5",
|
|
44
|
-
"shelljs": "^0.8.5",
|
|
45
42
|
"stylelint": "^15.11.0",
|
|
46
43
|
"tsx": "^4.6.2",
|
|
47
44
|
"typescript": "~5.2.2",
|
|
48
|
-
"vite": "^5.0.
|
|
45
|
+
"vite": "^5.0.8",
|
|
49
46
|
"vite-plugin-electron-renderer": "^0.14.5",
|
|
50
47
|
"vue-tsc": "^1.8.25"
|
|
51
48
|
}
|