Skip to content

Commit 847fb01

Browse files
Merge pull request #147 from oslabs-beta/electron-build
Electron build
2 parents e1439f5 + 8ef20d4 commit 847fb01

File tree

4 files changed

+114
-120
lines changed

4 files changed

+114
-120
lines changed

package.json

Lines changed: 89 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,71 +7,113 @@
77
"start": "electron .",
88
"build": "webpack -p",
99
"dev": "webpack-dev-server --mode=development",
10-
"test": "test",
11-
"package": "electron-forge make",
12-
"package-linux": "electron-packager . --linux --asar",
13-
"package-mac": "electron-packager . --darwin --asar",
14-
"package-win": "electron-packager . --platform win32 --arch x64 --asar"
10+
"pack": "build --dir",
11+
"dist": "build",
12+
"package-all": "build && electron-builder build -mwl",
13+
"test": "test"
14+
},
15+
"build": {
16+
"productName": "ProtoGraphQL",
17+
"appId": "org.oslabs.Protographql.todo",
18+
"asar": false,
19+
"files": [
20+
"public/",
21+
"index.html",
22+
"main.js",
23+
"apollo-server/",
24+
"package.json"
25+
],
26+
"dmg": {
27+
"contents": [
28+
{
29+
"x": 130,
30+
"y": 220
31+
},
32+
{
33+
"x": 410,
34+
"y": 220,
35+
"type": "link",
36+
"path": "/Applications"
37+
}
38+
]
39+
},
40+
"win": {
41+
"target": [
42+
"nsis",
43+
"msi"
44+
]
45+
},
46+
"linux": {
47+
"target": [
48+
"deb",
49+
"rpm",
50+
"snap",
51+
"AppImage"
52+
],
53+
"category": "Development"
54+
},
55+
"directories": {
56+
"buildResources": "public/assets/pictures/icon",
57+
"output": "release"
58+
},
59+
"publish": {
60+
"provider": "github",
61+
"owner": "oslabs-beta",
62+
"repo": "protographql",
63+
"private": false
64+
}
1565
},
1666
"repository": {
1767
"type": "git",
1868
"url": "git+https://github.com/protographql/protographql.git"
1969
},
20-
"author": "",
70+
"author": {
71+
"name": "ProtoGraphQL",
72+
"email": "protographql-labs@todo.com",
73+
"url": "https://protographql.todo.org"
74+
},
75+
"contributors": [
76+
{
77+
"name": "Alena Budzko",
78+
"email": "#TODO",
79+
"url": "#TODO"
80+
},
81+
{
82+
"name": "Bryan Fong",
83+
"email": "",
84+
"url": ""
85+
},
86+
{
87+
"name": "Rodolfo Guzman",
88+
"email": "",
89+
"url": ""
90+
},
91+
{
92+
"name": "Jarred Jack-Harewood",
93+
"email": "",
94+
"url": ""
95+
},
96+
{
97+
"name": "Geoffrey Lin",
98+
"email": "",
99+
"url": ""
100+
}
101+
],
21102
"license": "ISC",
22103
"bugs": {
23104
"url": "https://github.com/protographql/protographql/issues"
24105
},
25106
"homepage": "https://github.com/protographql/protographql#readme",
26-
"config": {
27-
"forge": {
28-
"electronPackagerConfig": {
29-
"asar": true,
30-
"executableName": "protographql",
31-
"icon": "public/pictures/icon/icon",
32-
"overwrite": true,
33-
"prune": true,
34-
"arch": "x64"
35-
},
36-
"make_targets": {
37-
"darwin": [
38-
"dmg"
39-
],
40-
"linux": [
41-
"deb"
42-
]
43-
},
44-
"makers": [
45-
{
46-
"name": "@electron-forge/maker-deb",
47-
"config": {
48-
"options": {
49-
"homepage": "https://github.com/protographql/protographql#readme"
50-
}
51-
}
52-
},
53-
{
54-
"name": "@electron-forge/maker-dmg",
55-
"config": {
56-
"format": "ULFO"
57-
}
58-
}
59-
]
60-
}
61-
},
62107
"devDependencies": {
63108
"@babel/core": "^7.4.5",
64109
"@babel/preset-env": "^7.4.5",
65110
"@babel/preset-react": "^7.0.0",
66-
"@electron-forge/maker-deb": "^6.0.0-beta.39",
67-
"@electron-forge/maker-squirrel": "^6.0.0-beta.39",
68111
"@material-ui/core": "^4.0.2",
69112
"awesome-typescript-loader": "^5.2.1",
70113
"babel-loader": "^8.0.6",
71114
"css-loader": "^2.1.1",
72115
"d3": "^5.9.2",
73116
"electron": "^5.0.5",
74-
"electron-packager": "^14.0.0",
75117
"enzyme": "^3.9.0",
76118
"eslint": "^5.16.0",
77119
"eslint-plugin-react": "^7.13.0",
@@ -87,12 +129,12 @@
87129
"webpack-dev-server": "^3.5.1"
88130
},
89131
"dependencies": {
90-
"archiver": "^3.0.0",
91132
"@material-ui/icons": "^4.0.1",
92133
"@types/react": "^16.8.19",
93134
"@types/react-dom": "^16.8.4",
135+
"archiver": "^3.0.0",
94136
"react": "^16.8.6",
95137
"react-dom": "^16.8.6",
96138
"react-draggable": "^3.3.0"
97139
}
98-
}
140+
}
39.6 KB
Binary file not shown.

public/index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<title>ProtoGraphQL</title>
7+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
8+
<!-- Fonts to support Material Design -->
9+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap" />
10+
<!-- Icons to support Material Design -->
11+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
12+
<!-- Roboto font -->
13+
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
14+
<!-- icons library -->
15+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
16+
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
17+
<link rel="stylesheet" href="styles.css">
18+
</head>
19+
20+
<body>
21+
<div id="root"></div>
22+
<script src="bundle.js"></script>
23+
</body>
24+
25+
</html>

queries.json

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)