exalt-tools

1.0.151 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i exalt-tools

Weekly Downloads

0

Version

1.0.151

License

MIT

Unpacked Size

15.2 kB

Total Files

14

Last publish

Collaborators

  • danielwedding