-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint", | ||
"electron:build": "vue-cli-service electron:build", | ||
"electron:build": "rimraf ./dist_electron && vue-cli-service electron:build", | ||
"build:linux": "yarn electron:build --linux deb", | ||
"electron:serve": "vue-cli-service electron:serve", | ||
"postinstall": "electron-builder install-app-deps", | ||
"postuninstall": "electron-builder install-app-deps", | ||
|
@@ -48,10 +49,15 @@ | |
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"prettier": "^1.19.1", | ||
"rimraf": "^3.0.2", | ||
"sass": "^1.26.5", | ||
"sass-loader": "^8.0.2", | ||
"vue-cli-plugin-electron-builder": "~2.0.0-rc.4", | ||
"vue-devtools": "^5.1.4", | ||
"vue-template-compiler": "^2.6.11" | ||
}, | ||
"author": { | ||
"name": "Divine & Jose", | ||
"email": "[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<link rel="icon" href="<%= BASE_URL %>favicon.ico" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
<script> | ||
const { | ||
server | ||
} = require('hardocs-graphql-api'); | ||
<body style="background-color: white;"> | ||
<div id="app"></div> | ||
<script> | ||
const { server } = require('hardocs-graphql-api'); | ||
|
||
server(); | ||
</script> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
|
||
<body style="background-color: white;"> | ||
<div id="app"></div> | ||
|
||
|
||
</body> | ||
|
||
</html> | ||
//create a server object: | ||
server(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const http = require('http'); | ||
console.log({ Hello: 'Hello world from preload file (src/server.js)' }); | ||
// const { server } = require('hardocs-graphql-api'); | ||
|
||
//create a server object: | ||
// server(); | ||
http | ||
.createServer(function(req, res) { | ||
res.write('Hello World!'); //write a response to the client | ||
res.end(); //end the response | ||
}) | ||
.listen(5001, () => console.log('Listening on 5001')); //the server object listens on port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters