Restructure
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "MQTT-Explorer",
|
"name": "MQTT-Explorer",
|
||||||
"version": "0.0.7",
|
"version": "0.0.7",
|
||||||
"description": "Explore your message queues",
|
"description": "Explore your message queues",
|
||||||
"main": "dist/electron.js",
|
"main": "dist/src/electron.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"install": "cd app; npm install; cd ..",
|
"install": "cd app; npm install; cd ..",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { UpdateInfo } from './events'
|
import { UpdateInfo } from '../events'
|
||||||
import { BrowserWindow, app } from 'electron'
|
import { BrowserWindow, app } from 'electron'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
|
|
||||||
const { autoUpdater } = require('electron-updater')
|
const { autoUpdater } = require('electron-updater')
|
||||||
const log = require('electron-log')
|
const log = require('electron-log')
|
||||||
import { ConnectionManager, updateNotifier } from './backend/src/index'
|
import { ConnectionManager, updateNotifier } from '../backend/src/index'
|
||||||
|
|
||||||
const isDebugEnabled = Boolean(process.argv.find(arg => arg === 'debug'))
|
const isDebugEnabled = Boolean(process.argv.find(arg => arg === 'debug'))
|
||||||
require('electron-debug')({ enabled: isDebugEnabled })
|
require('electron-debug')({ enabled: isDebugEnabled })
|
||||||
@@ -5,8 +5,9 @@
|
|||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"sourceRoot": "src/",
|
||||||
"lib": ["es2017", "dom"],
|
"lib": ["es2017", "dom"],
|
||||||
"sourceMap": true
|
"sourceMap": true
|
||||||
},
|
},
|
||||||
"include": ["electron.ts"]
|
"include": ["src/electron.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user