/lit-gen

Primary LanguageTypeScript

lit-gen

A command-line tool used to generate Lit web components such as lit elements, directives, controllers, etc.

Installation

Locally (recommended)

# npm
npm i lit-gen -D

# yarn
yarn add lit-gen -D

# pnpm
pnpm add lit-gen -D
Alternatively, you can install it globally
# npm
npm i lit-gen -g

# yarn
yarn global add lit-gen 

# pnpm
pnpm add lit-gen -g

Usage

Generating an element:

npx lit-gen generate element clark ./src/components

Note:

This project has not been tested.