@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/create-app",
3
- "version": "0.4.6",
3
+ "version": "0.5.0",
4
4
  "description": "create tomjs web app",
5
5
  "keywords": [
6
6
  "tomjs",
@@ -56,3 +56,4 @@ tsconfig.tsbuildinfo
56
56
  # build output
57
57
  build
58
58
  dist
59
+ release
@@ -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
- |--src
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.mjs",
9
+ "main": "dist/main/index.js",
10
10
  "scripts": {
11
11
  "dev": "vite",
12
- "build": "npm run clean && vite build && npm run release",
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.3.8",
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.7",
48
+ "vite": "^5.0.8",
52
49
  "vite-plugin-electron-renderer": "^0.14.5"
53
50
  }
54
51
  }
@@ -19,7 +19,7 @@ export default defineConfig(() => {
19
19
  },
20
20
  plugins: [
21
21
  react(),
22
- electron(),
22
+ electron({ builder: true }),
23
23
  // Use Node.js API in the Renderer process
24
24
  renderer(),
25
25
  ],
@@ -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
- |--src
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.mjs",
9
+ "main": "dist/main/index.js",
10
10
  "scripts": {
11
11
  "dev": "vite",
12
- "build": "npm run clean && vue-tsc --noEmit && vite build && npm run release",
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.3.8",
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.7",
45
+ "vite": "^5.0.8",
49
46
  "vite-plugin-electron-renderer": "^0.14.5",
50
47
  "vue-tsc": "^1.8.25"
51
48
  }
@@ -18,7 +18,7 @@ export default defineConfig(() => {
18
18
  },
19
19
  plugins: [
20
20
  vue(),
21
- electron(),
21
+ electron({ builder: true }),
22
22
  // Use Node.js API in the Renderer process
23
23
  renderer(),
24
24
  ],
@@ -74,6 +74,6 @@
74
74
  "tsup": "^8.0.1",
75
75
  "tsx": "^4.6.2",
76
76
  "typescript": "~5.2.2",
77
- "vite": "^5.0.7"
77
+ "vite": "^5.0.8"
78
78
  }
79
79
  }
@@ -38,6 +38,6 @@
38
38
  "prettier": "^3.1.1",
39
39
  "stylelint": "^15.11.0",
40
40
  "typescript": "~5.2.2",
41
- "vite": "^5.0.7"
41
+ "vite": "^5.0.8"
42
42
  }
43
43
  }
@@ -35,7 +35,7 @@
35
35
  "prettier": "^3.1.1",
36
36
  "stylelint": "^15.11.0",
37
37
  "typescript": "~5.2.2",
38
- "vite": "^5.0.7",
38
+ "vite": "^5.0.8",
39
39
  "vue-tsc": "^1.8.25"
40
40
  }
41
41
  }