UNPKG

sparc

Version:

Bootstrap Electron with static views or socket connection to remote source such as Create React App.

18 lines (12 loc) 274 B
const Sparc = require('../dist') .Sparc; const { join } = require('path'); const app = Sparc({ viewsDir: join(__dirname, 'views') }); app.test(); // used ONLY in testing. app.defineView('main', { defer: false }); app .handleQuit() .handleActivate() .ready();