0.21.1 • Published 1 year ago

@tinijs/core v0.21.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

TiniJS Core

The core module of the TiniJS framework.

It uses the Lit library under the hood.

Install

To manually install the module: npm i @tinijs/core

It is recommended to download the Skeleton for a ready-to-use structured project.

For more, please visit: https://tinijs.dev (TODO)

Usage

import {html} from 'lit';
import {TiniComponent, App} from '@tinijs/core';

@App()
export class AppRoot extends TiniComponent {
  protected render() {
    return html`...`;
  }
}
  • Create a component:
import {html} from 'lit';
import {TiniComponent, Component, Input} from '@tinijs/core';

@Component()
export class AppHelloComponent extends TiniComponent {
  static readonly defaultTagName = 'app-hello';

  @Input() name?: string;

  protected render() {
    return html`<h1>Hello ${this.name}! 👋</h1>`;
  }
}
  • Create a page:
import {html} from 'lit';
import {TiniComponent, Page} from '@tinijs/core';

@Page({
  name: 'app-page-404'
})
export class AppPage404 extends TiniComponent {
  protected render() {
    return html`<h1>Oops 🫣!</h1>`;
  }
}

For more detail, please visit the docs: https://tinijs.dev/docs (TODO)

API

// TODO

Developement

  • Create a home for TiniJS: mkdir TiniJS && cd TiniJS
  • Fork the repo
  • Install dependencies: cd core && npm i
  • Make changes & preview locally: npm run build && npm pack
  • Push changes & create a PR 👌

License

@tinijs/core is released under the MIT license.

0.21.0

1 year ago

0.20.0

1 year ago

0.21.1

1 year ago

0.19.0

1 year ago

0.18.0

1 year ago

0.17.0-alpha.0

1 year ago

0.17.0-alpha.1

1 year ago

0.17.0

1 year ago

0.16.0

2 years ago

0.15.4

2 years ago

0.15.1

2 years ago

0.15.2

2 years ago

0.15.3

2 years ago

0.15.0

2 years ago

0.14.2

2 years ago

0.14.1

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago

0.0.11

2 years ago

0.10.0

2 years ago

0.1.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.11.0

2 years ago

0.9.0

2 years ago

0.12.0

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago