mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 17:33:55 +00:00
config distribute
This commit is contained in:
+2
-2
@@ -10,6 +10,7 @@ node_modules/
|
||||
|
||||
# production
|
||||
build/
|
||||
dist/
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
@@ -27,9 +28,8 @@ TODO.md
|
||||
# working stuff
|
||||
_SS/
|
||||
.vscode/launch.json
|
||||
server/db.json
|
||||
db.json
|
||||
.eslintrc.json
|
||||
yarn.lock
|
||||
package.json
|
||||
package-lock.json
|
||||
db.json
|
||||
|
||||
+2
-2
@@ -59,7 +59,7 @@ app.get('*', (req, res) => {
|
||||
// Implement route for errors
|
||||
app.use((err, req, res, next) => {
|
||||
console.error(err.stack);
|
||||
res.status(500).send('Something broke!');
|
||||
res.status(500).send(err.stack);
|
||||
});
|
||||
|
||||
// create HTTP server
|
||||
@@ -73,7 +73,7 @@ global.timer = new EventTimer(server, config);
|
||||
global.timer.setupWithEventList(eventlist);
|
||||
|
||||
// Start server
|
||||
server.listen(port, () =>
|
||||
server.listen(port, '0.0.0.0', () =>
|
||||
console.log(`HTTP Server is listening on port ${port}`)
|
||||
);
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
const { app, BrowserWindow } = require('electron');
|
||||
const path = require('path');
|
||||
const nodeapp = require('./server/app.js');
|
||||
const nodeapp = require('./app.js');
|
||||
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'preload.js'),
|
||||
preload: path.join(__dirname, './preload.js'),
|
||||
nodeIntegration: true,
|
||||
},
|
||||
});
|
||||
+38
-5
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"name": "passport-example",
|
||||
"version": "0.0.1",
|
||||
"description": "Example with Passport (http://www.passportjs.org/)",
|
||||
"name": "my-electron-app",
|
||||
"version": "0.1.0",
|
||||
"author": "your name",
|
||||
"description": "My Electron app",
|
||||
"main": "main.js",
|
||||
|
||||
"dependencies": {
|
||||
"body-parser": "~1.19.0",
|
||||
"express": "~4.17.1",
|
||||
@@ -13,7 +16,37 @@
|
||||
"passport-local": "~1.0.0",
|
||||
"socket.io": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^12.0.7",
|
||||
"electron-builder": "^22.11.3",
|
||||
"eslint": "^7.26.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-react": "^7.23.2",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node app.js"
|
||||
}
|
||||
"nodestart": "node app.js",
|
||||
"start": "electron .",
|
||||
"pack": "electron-builder --dir",
|
||||
"dist": "electron-builder"
|
||||
},
|
||||
"build": {
|
||||
"appId": "your.id",
|
||||
"mac": {
|
||||
"category": "your.app.category.type"
|
||||
},
|
||||
"files": [
|
||||
"**/*"
|
||||
],
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "../client/build",
|
||||
"to": "resources/client/build",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
] },
|
||||
"postinstall": "electron-builder install-app-deps"
|
||||
}
|
||||
|
||||
+2934
-12
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user