generated from cawa-93/vite-electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 2.35 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "[pkg-name]",
"description": "[pkg-description]",
"version": "1.0.0",
"private": true,
"author": "Caspian Zhao <zhaodonghao586@outlook.com> (https://github.com/dohooo)",
"main": "packages/main/dist/index.cjs",
"scripts": {
"build": "pnpm run build:main && pnpm run build:preload && pnpm run build:renderer",
"build:main": "cd ./packages/main && vite build",
"build:preload": "cd ./packages/preload && vite build",
"build:renderer": "cd ./packages/renderer && vite build",
"compile": "cross-env MODE=production pnpm run build && electron-builder build --config .electron-builder.config.js --dir --config.asar=false",
"compile:win": "pnpm run compile --win portable",
"test": "pnpm run test:main && pnpm run test:preload && pnpm run test:renderer && pnpm run test:e2e",
"test:e2e": "pnpm run build && vitest run",
"test:main": "vitest run -r packages/main --passWithNoTests",
"test:preload": "vitest run -r packages/preload --passWithNoTests",
"test:renderer": "vitest run -r packages/renderer --passWithNoTests",
"watch": "node scripts/watch.mjs",
"lint": "eslint . --ext js,mjs,cjs,ts,mts,cts,tsx",
"lint:fix": "eslint . --ext js,mjs,cjs,ts,mts,cts,tsx --fix",
"typecheck:main": "tsc --noEmit -p packages/main/tsconfig.json",
"typecheck:preload": "tsc --noEmit -p packages/preload/tsconfig.json",
"typecheck": "pnpm run typecheck:main && pnpm run typecheck:preload && pnpm run typecheck:renderer",
"postinstall": "cross-env ELECTRON_RUN_AS_NODE=1 electron scripts/update-electron-vendors.mjs",
"format": "pnpm dlx prettier --write \"**/*.{js,mjs,cjs,ts,mts,cts,tsx,json}\""
},
"devDependencies": {
"@dohooo/eslint-config": "^0.0.7",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@vitejs/plugin-react": "^1.1.3",
"cross-env": "7.0.3",
"electron": "21.3.0",
"electron-builder": "23.6.0",
"eslint": "8.27.0",
"happy-dom": "7.7.0",
"nano-staged": "0.8.0",
"playwright": "1.27.1",
"simple-git-hooks": "2.8.1",
"typescript": "4.8.4",
"unplugin-auto-expose": "0.0.4",
"vite": "3.2.3",
"vitest": "0.25.1"
},
"dependencies": {
"@node-escpos/core": "^0.0.3",
"@node-escpos/usb-adapter": "^0.0.2",
"electron-updater": "5.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.2.1"
}
}