# @exmg/lit-cli

> Exmachina's CLI helper with Lit projects

Latest version **3.0.1** (published 2025-01-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @exmg/lit-cli
pnpm add @exmg/lit-cli
yarn add @exmg/lit-cli
bun add @exmg/lit-cli
```

Provides the command `exmg-lit-cli`.

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2025-01-16 |
| First published | 2023-02-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rdrgcnn |
| Maintainers | martinkolkman, em-jeroenv, nicholas-exmachina, marksmits, difosfor, tylerexmg, padamieo_exmachina, albert_exm, rdrgcnn, sander_exmachina, joepadmiraal, exmachina-ci, remonvv, kjelles, exm_erwingoossen, livery-ci, licenses |
| Keywords | Lit, CLI, Exmg |

## Links

- npm: https://www.npmjs.com/package/@exmg/lit-cli
- Repository: https://rdrgcnn@bitbucket.org/exmachina/exmg-lit-utils
- Homepage: https://bitbucket.org/exmachina/exmg-lit-utils/packages/lit-cli#readme
- Issues: https://bitbucket.org/exmachina/exmg-lit-utils/issues
- npm.io page: https://npm.io/package/@exmg/lit-cli

## Dependencies (10)

- [lit](https://npm.io/package/lit.md) ^3.0.0
- [sass](https://npm.io/package/sass.md) 1.57.1
- [replace](https://npm.io/package/replace.md) ^1.2.2
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.5
- [inquirer](https://npm.io/package/inquirer.md) ^9.1.4
- [commander](https://npm.io/package/commander.md) ^10.0.0
- [node-watch](https://npm.io/package/node-watch.md) ^0.7.3
- [node-sass-import](https://npm.io/package/node-sass-import.md) ^2.0.1
- [command-line-args](https://npm.io/package/command-line-args.md) ^5.2.1
- [command-line-usage](https://npm.io/package/command-line-usage.md) ^6.1.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 3.0.1 (latest) — 2025-01-16
- 3.0.0 — 2024-10-21
- 2.0.6 — 2024-10-18
- 2.0.5 — 2024-10-18
- 2.0.4 — 2024-10-18
- 2.0.3 — 2024-02-27
- 2.0.2 — 2024-02-19
- 2.0.1 — 2023-10-17
- 1.1.13 — 2023-07-17
- 1.1.12 — 2023-06-16
- 1.1.9 — 2023-05-24
- 1.1.7 — 2023-03-15
- 1.1.6 — 2023-03-14
- 1.1.5 — 2023-03-06
- 1.0.0-alpha.4 — 2023-02-09
- … 3 more at https://npm.io/package/@exmg/lit-cli/versions

## README

# Exmg Lit Utils @exmg/lit-cli

## Content

- [Links](#links)
- [Features](#features)
- [Setup](#setup)
- [Development](#development)
- [Usage](#usage)

## Links

[Repository](https://bitbucket.org/exmachina/exmg-lit-utils/src/master/packages/lit-cli/)

[NPM Page](https://www.npmjs.com/package/@exmg/lit-cli)

## Features

The LitCli package provides two handy CLI to process SCSS file

- lit-sass-cli

## Setup

`git clone` the project, then simply run `npm i`

<aside>
💡 Your NPM CLI must be connected to an authorized NPM account on `@exmg` namespace in NPM.
To do so, please follow the [instructions](https://docs.npmjs.com/cli/v6/commands/npm-adduser).

</aside>

## Development

The development process takes place on dedicated feature or fix branches.
Each branch is then merged into `master` branch.

Please refer to the naming conventions for branches in the [good practices section](https://www.notion.so/Branching-26261b1bd7f24a29ada41e59414159ac).

## Usage

### exmg-lit-cli sass

The Lit Sass CLI allows the developer to generate TS file from SCSS file to be used in Lit Components.
There are two modes to it.

#### Watcher

The default way of working of the Sass CLI is the watcher

```bash
exmg-lit-cli sass
```

The CLI will go through your file tree from the directory it is ran ignoring `node_modules` folder.

#### Providing source files

Alternatively it is possible to run the command by specifying the files to process, that being a single file or a file pattern using the `--files` or `-f` flag

```bash
exmg-lit-cli sass -f \"./src/**/*.scss\"
```

Note that it will process those file and exit, this is not a watcher.

---
_Source: https://npm.io/package/@exmg/lit-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
