1.0.151 • Published 3 years ago

exalt-tools v1.0.151

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

Exalt Tools

Command Line Tools for Exalt


Installation

npm install -g exalt-tools

or usage case:

npx exalt-tools

Warning

So far, the only two given fillers are className and componentName.


CLI Usage

exalt-tools <command>

Commands

  • create base <component-name>
  • create <type> <component-name>


Example Template

Each template should be in the root directory in folder templates with the name of the type.

Example: /templates/nav-bar.tt

import { Component, html } from "@exalt/core";

import style from "./{{componentName}}.css";

export class {{className}} extends Component {
    render(){
        return html`<div><a href="">Test</a></div>`;
    }
}

Component.create({ name: "{{componentName}}", styles: [style] }, {{className}});

Template extension can either be .txt or .tt.

1.0.151

3 years ago

1.0.15

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago