-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
193 lines (193 loc) · 7.1 KB
/
package.json
File metadata and controls
193 lines (193 loc) · 7.1 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"name": "moveit",
"version": "1.0.7",
"description": "A modern Electron + React app that moves your mouse to prevent system sleep",
"author": "Nicolae Balica",
"license": "MIT",
"type": "module",
"main": "dist/main.js",
"homepage": "https://github.com/NicolaeBP/MoveIt",
"repository": {
"type": "git",
"url": "https://github.com/NicolaeBP/MoveIt.git"
},
"scripts": {
"dev": "npm run build:electron && concurrently -k \"npm run dev:react-devtools\" \"npm run dev:vite\" \"npm run dev:electron\"",
"dev:vite": "vite",
"dev:electron": "wait-on tcp:5173 && cross-env NODE_ENV=development electron dist/main.js",
"dev:react-devtools": "react-devtools",
"clean": "npm run clean:dist && npm run clean:release",
"clean:dist": "rm -rf dist/ node_modules/.cache node_modules/.vite",
"clean:release": "rm -rf release/",
"build:mac": "npm run clean:dist && npm run build:vite && npm run build:electron && npm run package:mac",
"build:mac:nosign": "npm run clean:dist && npm run build:vite && npm run build:electron && npm run package:mac:nosign",
"build:mas": "npm run clean:dist && npm run build:vite && npm run build:electron && npm run package:mas",
"build:win": "npm run clean:dist && npm run build:vite && npm run build:electron && npm run package:win",
"build:win:nosign": "npm run clean:dist && npm run build:vite && npm run build:electron && npm run package:win:nosign",
"build:all": "npm run clean && npm run build:vite && npm run build:electron && npm run package:win && npm run package:mac",
"build:vite": "vite build",
"build:electron": "tsx scripts/build-electron.ts",
"package": "cross-env NODE_NO_WARNINGS=1 electron-builder --config scripts/electron-builder-config.mjs",
"package:win": "cross-env NODE_NO_WARNINGS=1 electron-builder --win --config scripts/electron-builder-config.mjs",
"package:win:nosign": "cross-env NODE_NO_WARNINGS=1 SKIP_SIGNING=true electron-builder --win --config scripts/electron-builder-config.mjs",
"package:mac": "cross-env NODE_NO_WARNINGS=1 electron-builder --mac --config scripts/electron-builder-config.mjs",
"package:mac:nosign": "cross-env NODE_NO_WARNINGS=1 CSC_IDENTITY_AUTO_DISCOVERY=false CSC_NAME='' SKIP_SIGNING=true electron-builder --mac --config scripts/electron-builder-config.mjs",
"package:mas": "cross-env NODE_NO_WARNINGS=1 electron-builder --mac mas --config scripts/electron-builder-config.mjs",
"package:linux": "cross-env NODE_NO_WARNINGS=1 electron-builder --linux --config scripts/electron-builder-config.mjs",
"preview": "vite preview",
"lint": "eslint src scripts electron --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint src scripts electron --ext ts,tsx --fix",
"type-check": "tsc --noEmit && tsc --project tsconfig.node.json --noEmit",
"type-check:src": "tsc --noEmit",
"type-check:electron": "tsc --project tsconfig.node.json --noEmit",
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.ts\" \"electron/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.ts\" \"electron/**/*.ts\"",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest --watch",
"prepare": "husky install"
},
"dependencies": {
"@nut-tree-fork/nut-js": "^4.2.6",
"electron-log": "^5.4.3",
"electron-store": "^10.1.0",
"electron-updater": "^6.6.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-intl": "^7.1.11",
"zustand": "^5.0.8"
},
"devDependencies": {
"@electron/notarize": "^3.1.0",
"@eslint/js": "^9.36.0",
"@formatjs/cli": "^6.7.2",
"@tailwindcss/postcss": "^4.1.13",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.5.2",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"@typescript-eslint/eslint-plugin": "^8.44.0",
"@typescript-eslint/parser": "^8.44.0",
"@vitejs/plugin-react": "^5.0.2",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"autoprefixer": "^10.4.21",
"concurrently": "^9.2.1",
"cross-env": "^10.0.0",
"electron": "^38.1.0",
"electron-builder": "^26.0.12",
"esbuild": "^0.25.9",
"eslint": "^9.35.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"happy-dom": "^19.0.2",
"husky": "^9.1.7",
"jsdom": "^27.0.0",
"lint-staged": "^16.1.6",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"react-devtools": "^6.1.5",
"rollup-plugin-visualizer": "^6.0.3",
"tailwindcss": "^4.1.13",
"terser": "^5.44.0",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"vite": "7.1.11",
"vitest": "^3.2.4",
"wait-on": "^9.0.0"
},
"build": {
"appId": "com.nicolaebalica.moveit",
"productName": "MoveIt",
"executableName": "MoveIt",
"afterSign": "scripts/notarize.cjs",
"publish": [
{
"provider": "github",
"owner": "NicolaeBP",
"repo": "MoveIt"
}
],
"directories": {
"output": "release",
"buildResources": "build"
},
"files": [
"dist/**/*",
"assets/**/*",
"package.json",
"node_modules/**/*"
],
"mac": {
"category": "public.app-category.utilities",
"target": [
"dmg",
"zip"
],
"icon": "assets/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "entitlements.mac.plist",
"entitlementsInherit": "entitlements.mac.plist",
"identity": "Nicolae Balica (72Z547BVVA)"
},
"mas": {
"type": "distribution",
"category": "public.app-category.utilities",
"icon": "assets/icon.icns",
"entitlements": "entitlements.mas.plist",
"entitlementsInherit": "entitlements.mas.inherit.plist",
"provisioningProfile": "build/MoveIt_Mac_App_Store.provisionprofile",
"hardenedRuntime": false,
"gatekeeperAssess": false,
"binaries": [],
"identity": "Nicolae Balica (72Z547BVVA)"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
],
"icon": "assets/icon.ico",
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "MoveIt"
},
"linux": {
"target": "AppImage",
"icon": "assets/icon.png"
},
"appx": {
"applicationId": "MoveIt",
"backgroundColor": "#ffffff",
"displayName": "MoveIt",
"identityName": "NicolaeBalica.MoveIt",
"publisher": "CN=PUBLISHER_ID_PLACEHOLDER",
"publisherDisplayName": "Nicolae Balica",
"languages": [
"en-US"
]
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --max-warnings 0",
"prettier --write"
]
}
}