-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
102 lines (102 loc) · 2.59 KB
/
package.json
File metadata and controls
102 lines (102 loc) · 2.59 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
{
"name": "electron-sockets",
"version": "1.0.0",
"author": "Ryan Dsouza <dsouza.ryan.11@gmail.com>",
"license": "ISC",
"description": "An Electron app (React) connected to a Node Backend (Backpack) and SocketIO",
"main": "public/electron.js",
"homepage": "./",
"engines": {
"node": ">=8"
},
"dependencies": {
"@loadable/component": "^5.2.2",
"electron-is-dev": "^1.0.1",
"react": "^16.8.0-alpha.1",
"react-dom": "^16.8.0-alpha.1",
"socket.io-client": "^2.2.0",
"styled-components": "^4.1.3"
},
"scripts": {
"start": "concurrently \"cross-env BROWSER=none npm run start:client\" \"cross-env BROWSER=none npm run start:electron\" \"wait-on http://localhost:3000 && electron .\"",
"start:client": "react-app-rewired start",
"start:electron": "cross-env NODE_ENV=development webpack",
"build": "electron-builder build -l",
"prebuild": "npm run clean:build && npm run build:electron && npm run build:client",
"clean:build": "rimraf dist build",
"build:client": "react-app-rewired build",
"build:electron": "cross-env NODE_ENV=production webpack",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
},
"build": {
"productName": "Socketeer",
"appId": "com.ryan.Socketeer",
"win": {
"target": [
"nsis"
]
},
"nsis": {
"oneClick": true,
"deleteAppDataOnUninstall": true
},
"linux": {
"target": [
"deb",
"AppImage"
],
"category": "Messaging"
}
},
"eslintConfig": {
"extends": "react-app",
"globals": {
"__DEV__": true
}
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"browserslist": [
"chrome > 70"
],
"devDependencies": {
"@babel/preset-env": "^7.4.5",
"babel-plugin-import": "^1.11.0",
"babel-plugin-styled-components": "^1.10.0",
"concurrently": "^4.1.0",
"cross-env": "^5.2.0",
"customize-cra": "^0.2.9",
"dotenv": "^8.0.0",
"dotenv-expand": "^5.1.0",
"electron": "^7.2.4",
"electron-builder": "^20.38.5",
"husky": "^2.3.0",
"lint-staged": "^8.1.7",
"prettier": "^1.17.1",
"react-app-rewired": "^2.0.2",
"react-scripts": "3.0.1",
"rimraf": "^2.6.3",
"wait-on": "^3.2.0",
"webpack-cli": "^3.3.2",
"webpack-node-externals": "^1.7.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,css,scss}": [
"prettier --write",
"git add"
],
"electron/**/*.js": [
"prettier --write",
"git add"
]
}
}