-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 3.23 KB
/
package.json
File metadata and controls
122 lines (122 loc) · 3.23 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
{
"name": "electron-react-multiwindow-state",
"version": "0.1.0",
"private": true,
"main": "build/electron/index.js",
"dependencies": {
"@reduxjs/toolkit": "^1.8.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.2",
"react-router-dom": "^6.3.0",
"redux-persist": "^6.0.0",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@playwright/test": "^1.25.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.56",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"electron": "^20.1.0",
"electron-builder": "^23.3.3",
"npm-run-all": "^4.1.5",
"parcel": "^2.7.0",
"path-browserify": "^1.0.1",
"playwright": "^1.25.2",
"process": "^0.11.10",
"react-scripts": "5.0.1",
"typescript": "^4.8.2"
},
"scripts": {
"test": "CI=true react-scripts test --color",
"test:e2e": "npm run build && playwright test tests/e2e",
"test:all": "run-p test test:e2e",
"start": "run-p --race start:renderer start:electron",
"start:renderer": "BROWSER=none PORT=3000 react-scripts start",
"start:electron": "sleep 5 && npm run build:electron && NODE_ENV=development PORT=3000 electron .",
"start:static": "npm run build && NODE_ENV=development NO_DEV_SERVER=true electron .",
"clean": "rm -rf build && rm -rf dist",
"build": "run-s clean build:renderer build:electron",
"build:renderer": "PUBLIC_URL=./ react-scripts build",
"build:electron": "parcel build",
"pack": "npm run build && electron-builder --win --linux --mac",
"pack:win": "npm run build && electron-builder --win",
"pack:lin": "npm run build && electron-builder --linux",
"pack:mac": "npm run build && electron-builder --mac"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"targets": {
"preload": {
"source": "electron/preload.ts",
"distDir": "build/electron",
"isLibrary": false,
"includeNodeModules": false,
"engines": {
"node": ">= 12"
}
},
"electron": {
"context": "electron-main",
"source": "electron/index.ts",
"distDir": "build/electron",
"engines": {
"node": ">= 12"
}
}
},
"build": {
"extraMetadata": {
"homepage": "./",
"main": "build/electron/index.js"
},
"productName": "electron-react-multiwindow-state",
"appId": "com.alessiocoser.electron-react-multiwindow-state",
"files": [
"build/**/*"
],
"mac": {
"category": "public.app-category.productivity",
"target": [
"dmg",
"zip"
],
"icon": "build/logo.icns"
},
"linux": {
"maintainer": "Alessio Coser",
"target": [
"tar.gz",
"deb"
],
"icon": "build/logo.icns"
},
"win": {
"target": [
"zip",
"dir"
],
"icon": "build/logo.ico"
}
}
}