0.1.1 • Published 3 years ago

@winterfoxxo/acacia v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Acacia

A simple application framework for personal use.

Usage

import {Application} from "@winterfoxxo/acacia";

const app = new Application({
    componentDir: __dirname,
    serviceDir: __dirname
});
app.load().then(() => console.log("Application loaded!"));

Components/Services

import {Service, Component, Ref} from "@winterfoxxo/acacia";

// services/MyService.ts
@Service("myService", 1)
export default class MyService {
}

// components/MyComponent.ts

@Component("myComponent", 1)
export default class MyComponent {
    @Ref public myService: MyService;
    init() {
        console.log(this.myService); // MyService {}
    }
}
0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago