2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

Updated frappejs packages to work with node to v12

This commit is contained in:
thefalconx33 2019-07-16 12:29:35 +05:30
parent a91b4a274c
commit 5032f0397c
4 changed files with 3013 additions and 12518 deletions

9879
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,8 @@
"dist/electron"
],
"dmg": {
"contents": [{
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
@ -58,10 +59,11 @@
},
"dependencies": {
"cross-env": "^5.2.0",
"frappejs": "github:frappe/frappejs",
"file-saver": "^2.0.2",
"frappejs": "github:thefalconx33/frappejs#test",
"nodemailer": "^4.7.0",
"popper.js": "^1.14.4",
"vue-color": "^2.7.0",
"vue-toasted": "^1.1.25"
}
}
}

View File

@ -1,20 +1,17 @@
const {
app,
BrowserWindow
} = require('electron');
const { app, BrowserWindow } = require('electron');
const setupMenu = require('./menu');
let mainWindow
let winURL
let mainWindow;
let winURL;
if (process.env.NODE_ENV !== 'development') {
global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
global.__static = require('path')
.join(__dirname, '/static')
.replace(/\\/g, '\\\\');
}
if (process.env.NODE_ENV === 'development') {
const {
getAppConfig
} = require('frappejs/webpack/utils');
const { getAppConfig } = require('frappejs/webpack/utils');
const appConfig = getAppConfig();
winURL = `http://localhost:${appConfig.dev.devServerPort}`;
} else {
@ -31,32 +28,33 @@ function createWindow() {
height: 768,
useContentSize: true,
webPreferences: {
webSecurity: false
webSecurity: false,
nodeIntegration: true
}
})
});
mainWindow.loadURL(winURL)
mainWindow.loadURL(winURL);
mainWindow.on('closed', () => {
mainWindow = null
})
mainWindow = null;
});
setupMenu();
}
app.on('ready', createWindow)
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
app.quit();
}
})
});
app.on('activate', () => {
if (mainWindow === null) {
createWindow()
createWindow();
}
})
});
// TODO:
// Enable Auto Update

5606
yarn.lock

File diff suppressed because it is too large Load Diff