Update modules, use latest electron and fix bad requires. App is up and running, but needs debugging of the frontend and a fierce refactor.
This commit is contained in:
parent
236908993e
commit
339303c0c2
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
npm install -g gulp electron
|
||||
npm install electron-prebuilt
|
||||
npm install
|
||||
./node_modules/.bin/electron-rebuild
|
||||
mkdir logs
|
||||
|
|
10
app/main.js
10
app/main.js
|
@ -1,13 +1,13 @@
|
|||
|
||||
var electron = require('electron'),
|
||||
fs = require('fs'),
|
||||
Menu = require('menu'),
|
||||
MenuItem = require('menu-item'),
|
||||
ipcMain = require('electron').ipcMain,
|
||||
Menu = electron.Menu,
|
||||
MenuItem = electron.MenuItem,
|
||||
ipcMain = electron.ipcMain,
|
||||
BrowserWindow = electron.BrowserWindow,
|
||||
app = electron.app,
|
||||
fs = require('fs'),
|
||||
winston = require('winston'),
|
||||
moment = require('moment'),
|
||||
BrowserWindow = electron.BrowserWindow,
|
||||
uuid = require('uuid'),
|
||||
Q = require('q'),
|
||||
events = require('events'),
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,8 @@
|
|||
"description": "16mm optical printer",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "gulp && electron main.js"
|
||||
"start": "gulp && electron main.js",
|
||||
"install": "electron-rebuild"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -23,20 +24,20 @@
|
|||
},
|
||||
"homepage": "https://github.com/sixteenmillimeter/mcopy#readme",
|
||||
"devDependencies": {
|
||||
"electron-inspector": "^0.1.4",
|
||||
"electron-packager": "^8.4.0",
|
||||
"electron-prebuilt": "^1.4.12",
|
||||
"electron-rebuild": "^1.4.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-less": "^3.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"electron": "^1.8.1",
|
||||
"humanize-duration": "^3.10.0",
|
||||
"moment": "^2.17.1",
|
||||
"node-notifier": "^4.6.1",
|
||||
"q": "^1.4.1",
|
||||
"serialport": "^4.0.7",
|
||||
"sqlite3": "^3.1.13",
|
||||
"uuid": "^3.0.1",
|
||||
"winston": "^2.3.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue