-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
80 lines (80 loc) · 2.62 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
80
{
"name": "nimbus-proto",
"productName": "NIMBUS – Electron App",
"version": "0.1.0",
"private": true,
"homepage": "./",
"main": "./electron/main.js",
"dependencies": {
"async": "^3.2.0",
"axios": "^0.21.1",
"bson": "^4.2.2",
"concurrently": "^5.2.0",
"d3": "^5.16.0",
"d3-geo-projection": "^3.0.0",
"electron": "^9.4.3",
"electron-builder": "^22.8.0",
"electron-is-dev": "^1.2.0",
"express": "^4.17.1",
"fs-extra": "^9.1.0",
"raw-body": "^2.4.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"three": "^0.124.0",
"topojson": "^3",
"wait-on": "^5.1.0"
},
"proxy": "http://localhost:8080",
"scripts": {
"start": "export BROWSER=none && react-scripts start",
"build": "react-scripts --max_old_space_size=4096 build",
"server": "nodemon server.js",
"start-electron": "export ELECTRON_START_URL=http://localhost:3000 && electron .",
"build-electron": "mkdir build/src && cp -r electron/. build/electron && cp -r src/shared/. build/src/shared",
"package": "electron-builder build --mac --win -c.extraMetadata.main=build/electron/main.js --publish never"
},
"scriptsComments": {
"* NOTE *" : "Developed for Mac only at this time. If it is desired to run on Win, need to add additional scripts for that.",
"start": "Runs development build on a local web server, frontend on 3000 (create-react-app) and proxied requests to 8080",
"build": "Runs production build, server runs and serves frontend from 8080",
"server": "Runs the node server, needs to be run before start script if in development mode",
"start-electron": "Runs electron locally, not a build. Must run server and start scripts in separate terminal windows before this.",
"build-electron": "Creates /electron and /src folders in /build to use for electron package script",
"package": "Package the code in the build/electron and build/src folders into executables (Mac and Win) outputted in /dist."
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"build": {
"files": [
"build/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "assets"
},
"electronVersion": "4.2.8",
"publish": {
"provider": "github",
"repo": "Nimbus",
"owner": "clima"
}
},
"devDependencies": {
"electron": "^9.4.4",
"electron-builder": "^22.10.5"
}
}