Skip to content

Commit

Permalink
[cli] Prepare for CLI 0.1.0 release (#3225)
Browse files Browse the repository at this point in the history
- Remove `private` and add a changeset, so that the next deploy should release `0.1.0` of everything (because they are all currently `0.0.1`).
- Add disclaimer to README about this being an early release.
- Document the `labs gen` command and its flags in the README.
- Mention that `vue` is also supported in the `help` command text.
  • Loading branch information
aomarks committed Aug 18, 2022
1 parent 5a65ca9 commit 198da7c
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .changeset/mighty-yaks-compete.md
@@ -0,0 +1,8 @@
---
'@lit-labs/cli': minor
'@lit-labs/gen-utils': minor
'@lit-labs/gen-wrapper-react': minor
'@lit-labs/gen-wrapper-vue': minor
---

Initial release
33 changes: 29 additions & 4 deletions packages/labs/cli/README.md
Expand Up @@ -4,6 +4,10 @@ The `lit` command line tool for Lit.

The Lit CLI is a common place for utilities maintained by the Lit team.

> IMPORTANT: ⚠️ `@lit-labs/cli` is 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:
Expand All @@ -22,23 +26,44 @@ npm i -D @lit-labs/cli
## Commands

- [`help`](#help)
- [`localize`]($localize)
- [`localize`](#localize)
- [`labs gen`](#gen)

### `help`

#### Usage:
Displays a help message with available commands.

#### Usage

```sh
$ lit help
```

Displays a help message with available commands.

### `localize`

Extract localization messages or build a localized application.

#### Usage

```sh
$ lit localize extract
$ lit localize build
```

### `labs gen`

Generate framework wrappers.

#### Usage

```sh
$ lit localize gen --framework=react
```

#### Flags

| 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/` |
1 change: 0 additions & 1 deletion packages/labs/cli/package.json
@@ -1,5 +1,4 @@
{
"private": true,
"name": "@lit-labs/cli",
"description": "Tooling for Lit development",
"version": "0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/cli/src/lib/commands/labs.ts
Expand Up @@ -29,7 +29,7 @@ export const makeLabsCommand = (cli: LitCli): Command => {
name: 'framework',
multiple: true,
description:
'Framework to generate wrappers for. Supported frameworks: react.',
'Framework to generate wrappers for. Supported frameworks: react, vue.',
},
{
name: 'out',
Expand Down
1 change: 0 additions & 1 deletion packages/labs/gen-utils/package.json
@@ -1,5 +1,4 @@
{
"private": true,
"name": "@lit-labs/gen-utils",
"description": "Utilities for lit code generators",
"version": "0.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/labs/gen-wrapper-react/package.json
@@ -1,5 +1,4 @@
{
"private": true,
"name": "@lit-labs/gen-wrapper-react",
"description": "Code generator for React wrapper for Lit components",
"version": "0.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/labs/gen-wrapper-vue/package.json
@@ -1,5 +1,4 @@
{
"private": true,
"name": "@lit-labs/gen-wrapper-vue",
"description": "Code generator for Vue wrapper for Lit components",
"version": "0.0.1",
Expand Down

0 comments on commit 198da7c

Please sign in to comment.