-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
79 lines (79 loc) · 2.2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "electron-react-example",
"version": "1.0.0",
"description": "An example of an Electron app with React and Webpack",
"main": "src/main/main.js",
"scripts": {
"dev": "concurrently \"npm run dev:renderer\" \"npm run sleep && npm run dev:main\"",
"dev:renderer": "webpack serve --config webpack.renderer.dev.config.js",
"dev:main": "cross-env NODE_ENV=development electronmon src/main/main.js",
"package": "npm run bundle:main && npm run bundle:renderer && electron-builder",
"bundle:main": "cross-env NODE_ENV=production webpack --config webpack.main.prod.config.js",
"bundle:renderer": "webpack --config webpack.renderer.prod.config.js",
"clean": "rimraf release/app/main release/app/renderer release/build",
"sleep": "node -e \"setTimeout(() => process.exit(0), 2000)\""
},
"author": "stuckpointer.com",
"license": "MIT",
"devDependencies": {
"@babel/preset-env": "7.22.9",
"@babel/preset-react": "7.22.5",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"babel-loader": "9.1.3",
"concurrently": "8.2.0",
"cross-env": "7.0.3",
"css-loader": "6.8.1",
"electron": "25.3.0",
"electron-builder": "24.6.3",
"electronmon": "2.0.2",
"html-webpack-plugin": "5.5.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.14.1",
"rimraf": "5.0.1",
"style-loader": "3.3.3",
"webpack": "5.88.1",
"webpack-bundle-analyzer": "4.9.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1"
},
"build": {
"productName": "ElectronReactExample",
"appId": "com.stuckpointer.electron-react-example",
"asar": true,
"files": [
"main",
"renderer",
"package.json"
],
"linux": {
"target": [
"AppImage"
],
"category": "Development"
},
"win": {
"target": [
"nsis"
]
},
"directories": {
"app": "release/app",
"buildResources": "assets",
"output": "release/build"
},
"extraResources": [
"./assets/**"
]
},
"electronmon": {
"patterns": [
"!.idea/**",
"!LICENSE",
"!README.md",
"!src/main/renderer/**",
"!release/**",
"!.gitignore"
]
}
}