@augu/lilith
v5.3.3
Published
🧵 Simple application framework made in TypeScript (made for personal usage)
Downloads
63
Readme
Lilith
🧵 Simple application framework made in TypeScript (made for personal usage)
Usage
import { Container } from '@augu/lilith';
const container = new Container({
componentsDir: __dirname,
servicesDir: __dirname,
});
container.load().then(() => console.log('ready'));
Components
import { Component } from '@augu/lilith';
@Component({
priority: 0,
name: 'component',
})
export default class Component {
load() {
console.log('lifecycle hook that this component is first being initialized.');
}
dispose() {
console.log('lifecycle hook that this component is being unloaded.');
console.log(
"You also have access to the Component's API! You can use the `useApi(<name>)` hook to get the API between a component or service if you're not in the component itself."
);
}
}
License
Lilith is released under MIT License! 💖