UNPKG

688 BPlain TextView Raw
1import * as main from '@uiharness/electron/lib/main';
2const config = require('../.uiharness/config.json') as main.IRuntimeConfig;
3
4/**
5 * Initialize the default [main] window process with the [UIHarness].
6 *
7 * NOTE:
8 * To do your own thing, simply disregard this and write your own.
9 *
10 * To get started writing your own [main] entry-point:
11 * https://electronjs.org/docs/tutorial/first-app#electron-development-in-a-nutshell
12 *
13 * To review the [UIHarness] entry-point as a example:
14 * https://github.com/uiharness/uiharness/blob/master/code/libs/electron/src/main/index.ts
15 *
16 */
17(async () => {
18 const { log } = await main.init({ config });
19 log.info('main started');
20})();