@icepanel/core
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

IcePanel Core

npm version npm size npm downloads github issues github prs

This package provides all the core elements and base classes required to create the backend for IcePanel plugins.

Installation

First install the package into your project.

npm install @icepanel/core
yarn add @icepanel/core

Usage

You can then create and export classes for the following plugin types:

  • AppPlugin
  • EnginePlugin
  • NetworkPlugin
  • ToolPlugin
  • VolumePlugin

See the example below of a simple IcePanel app plugin.

import { AppPlugin, IAppPlugin } from '@icepanel/core'

export interface IMyAppStore {}

export default class MyApp extends AppPlugin<IMyAppStore>
  implements IAppPlugin<IMyAppStore> {

  async init() {
    await super.init()
    console.log('My app is starting up')
  }

  async destroy() {
    console.log('My app is being destroyed')
    await super.destroy()
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @icepanel/core

Weekly Downloads

4

Version

0.7.2

License

MIT

Unpacked Size

85.7 kB

Total Files

34

Last publish

Collaborators

  • victor96