Restructure

This commit is contained in:
Thomas Nordquist
2019-01-17 23:31:36 +01:00
parent ed0942983b
commit a06ff100a8
3 changed files with 5 additions and 4 deletions

View File

@@ -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 ..",

View File

@@ -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 })

View File

@@ -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"]
} }