0.6.5 • Published 1 year ago
@lit-labs/cli v0.6.5
@lit-labs/cli
The lit command line tool for Lit.
The Lit CLI is a common place for utilities maintained by the Lit team.
IMPORTANT: ⚠️
@lit-labs/cliis currently available only as a pre-release for early testing. Feel free to try it out, but expect occasional bugs, missing features, and frequent breaking changes! ⚠️
Installation
Install globally, so you can run the lit command anywhere on your system:
npm i -g @lit-labs/cliOr install into a project, so that the correct version is installed with other dependencies:
cd my-project
npm i -D @lit-labs/cliCommands
help
Displays a help message with available commands.
Usage
$ lit helplocalize
Extract localization messages or build a localized application.
Usage
$ lit localize extract
$ lit localize buildlabs gen
Generate framework wrappers.
Usage
$ lit labs gen --framework=reactFlags
| Flag | Description |
|---|---|
--framework | Framework(s) to generate wrappers for. Supported frameworks: react, vue. Can be specified multiple times. |
--package | Folder(s) containing a package to generate wrappers for. Default: ./. Can be specified multiple times. |
--out | Folder to output generated packages to. Default: ./gen/ |