main.js Project entry file and lifecycle
# Introducing framework core ee-core
const Appliaction = require('ee-core').Appliaction;
# main class
class Main extends Appliaction {
constructor() {
super();
// this object is equal to the global app object of EE framework
}
/**
* core app have been loaded
*/
async ready () {
// do some things
}
/**
* electron app ready
*/
async electronAppReady () {
// do some things
}
/**
* main window have been loaded
*/
async windowReady () {
// do some things
}
/**
* before app close
*/
async beforeClose () {
// do some things
}
}
// instantiation
new Main();