Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[labs/cli] Lazily install and locally version localize #2936

Merged
merged 15 commits into from Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/clean-parents-doubt.md
@@ -0,0 +1,6 @@
---
'@lit-labs/cli': minor
'@lit/localize-tools': minor
---

Locally version and lazily install the localize command.
3 changes: 3 additions & 0 deletions .eslintignore
Expand Up @@ -159,6 +159,9 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Expand Up @@ -145,6 +145,9 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand Down
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/labs/cli-localize/.gitignore
@@ -0,0 +1,2 @@
/lib/
/node_modules/
3 changes: 3 additions & 0 deletions packages/labs/cli-localize/CHANGELOG.md
@@ -0,0 +1,3 @@
# @lit-labs/cli

## 0.0.1
7 changes: 7 additions & 0 deletions packages/labs/cli-localize/README.md
@@ -0,0 +1,7 @@
# @lit-labs/cli-localize

Powers the `lit localize` command.

Don't use this directly, but install `@lit-labs/cli` and run `lit localize` from it.

That command will load this package from the nearest node_modules directory, or offer to install it if it's not found.