-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.52 KB
/
Copy pathpackage.json
File metadata and controls
120 lines (120 loc) · 3.52 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "switchbot-controller",
"version": "1.3.2",
"description": "",
"type": "commonjs",
"main": "dist_electron/src/main/main.js",
"scripts": {
"test": "cross-env TMPDIR=/tmp jest",
"start": "npm run build:electron && electron .",
"dev": "cross-env NODE_ENV=development concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
"dev:vite": "vite src/renderer --port 5173",
"dev:electron": "wait-on http://localhost:5173 && npm run build:electron:main && npm run build:electron:preload && electron . --inspect",
"build": "npm run build:licenses && npm run build:vite && npm run build:electron",
"build:web": "cross-env BUILD_TARGET=web VITE_APP_MODE=mock vite build src/renderer",
"build:licenses": "node scripts/generate-licenses.js",
"build:vite": "vite build src/renderer",
"build:electron": "npm run build:electron:main && npm run build:electron:preload",
"build:electron:main": "tsc -p tsconfig.json",
"build:electron:preload": "tsc -p tsconfig.json",
"package": "npm run build && electron-builder",
"test:watch": "cross-env TMPDIR=/tmp jest --watch",
"test:coverage": "cross-env TMPDIR=/tmp jest --coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/0suu/SwitchBotController.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/0suu/SwitchBotController/issues"
},
"homepage": "https://github.com/0suu/SwitchBotController#readme",
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/crypto-js": "^4.2.2",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@vitejs/plugin-react": "^4.5.1",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"electron": "^36.4.0",
"electron-builder": "^26.0.12",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"license-checker-rseidelsohn": "^4.4.2",
"ts-jest": "^29.3.4",
"typescript": "^5.8.3",
"vite": "^6.3.5",
"wait-on": "^8.0.3"
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^7.3.5",
"@mui/material": "^7.1.1",
"@reduxjs/toolkit": "^2.8.2",
"axios": "^1.9.0",
"crypto-js": "^4.2.0",
"electron-store": "^4.0.0",
"electron-updater": "^6.8.3",
"framer-motion": "^12.23.24",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-redux": "^9.2.0"
},
"build": {
"appId": "com.switchbot-controller.app",
"productName": "SwitchBot Controller",
"publish": {
"provider": "github",
"owner": "0suu",
"repo": "SwitchBotController",
"vPrefixedTagName": false
},
"files": [
"dist_electron/**/*",
"dist_renderer/**/*",
"node_modules/**/*",
"package.json"
],
"extraResources": [
{
"from": "LICENSE",
"to": "LICENSE"
},
{
"from": "build/licenses",
"to": "licenses",
"filter": [
"THIRD_PARTY_LICENSES.txt"
]
}
],
"directories": {
"buildResources": "assets",
"output": "release"
},
"afterPack": "scripts/after-pack.js",
"win": {
"target": [
"nsis"
],
"icon": "assets/icon.ico"
},
"mac": {
"target": [
"dmg",
"zip"
],
"icon": "assets/icon.icns",
"category": "public.utility",
"identity": null
}
}
}