1.3.2 • Published 7 months ago

@freelensapp/application v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@freelensapp/application

This package contains stuff related to creating Lens-applications.

Usage

npm install @freelensapp/application-for-electron-main
import { applicationFeature, startApplicationInjectionToken } from "@freelensapp/application";
import { registerFeature } from "@freelensapp/feature-core";
import { createContainer } from "@ogre-tools/injectable";

const di = createContainer("some-container");

registerFeature(di, applicationFeature);

const startApplication = di.inject(startApplicationInjectionToken);

startApplication();

Features

Start application

startApplicationInjectionToken

Starts the application and calls timeslots in specified order. Check for timeslots for more info.

Extendability

Timeslots

  1. beforeApplicationIsLoadingInjectionToken
  2. onLoadOfApplicationInjectionToken
  3. afterApplicationIsLoadedInjectionToken