npm.io
1.0.151 • Published 5 years agoCLI

exalt-tools

Licence
MIT
Version
1.0.151
Deps
1
Size
15 kB
Vulns
0
Weekly
0
Stars
1

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.