# @exmg/test-exmg-cli

> CLI - scripts used to process and build polymer / lit-element packages

Latest version **0.1.0-alpha.0** (published 2021-09-24) · MIT license · 0 weekly downloads

## Install

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

Provides the command `exmg-cli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.0 |
| Published | 2021-09-24 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | martinkolkman, em-jeroenv, saartje87, nicholas-exmachina, marksmits, difosfor, tylerexmg, padamieo_exmachina, albert_exm, rdrgcnn, exmachina, sander_exmachina, joepadmiraal, exmachina-ci, remonvv, kjelles, frits-exmachina, lbronsdijk, pawelkrolnl |
| Keywords | web-components, polymer, lit-element, cli |

## Links

- npm: https://www.npmjs.com/package/@exmg/test-exmg-cli
- Repository: https://github.com/ExmgElements/exmg-cli
- Homepage: https://github.com/ExmgElements/exmg-cli#readme
- Issues: https://github.com/ExmgElements/exmg-cli/issues
- npm.io page: https://npm.io/package/@exmg/test-exmg-cli

## Dependencies (11)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [gulp](https://npm.io/package/gulp.md) ^4.0.0
- [sass](https://npm.io/package/sass.md) ^1.26.10
- [replace](https://npm.io/package/replace.md) ^1.2.0
- [gulp-watch](https://npm.io/package/gulp-watch.md) ^5.0.1
- [node-watch](https://npm.io/package/node-watch.md) ^0.6.2
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.4.0
- [gulp-replace](https://npm.io/package/gulp-replace.md) ^1.0.0
- [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.0.2
- [command-line-usage](https://npm.io/package/command-line-usage.md) ^6.1.0

## 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

- 0.1.0-alpha.0 (latest) — 2021-09-24

## README

# exmg-cli

- [sass-render](#sass-render)

  - [command options](#command-options-sass-render)

  - [examples](#examples-sass-render)

##

## sass-render

Main aim is to process and generate files `*.css and *.scss` into \*.ts

### Command options sass-render

| alias | option   | type    | description                                                                  |
| ----- | -------- | ------- | ---------------------------------------------------------------------------- |
| -s    | --source | string  | Template file to render sass into.                                           |
| -w    | --watch  | boolean | Starts the renderer in watch mode, looks at the from the root of the project |
| -h    | --help   | boolean | Print this message.                                                          |

### Examples sass-render

Process single file

`exmg-cli -s ./test.scss`

on the output file `test-css.ts` looks:

```text
import {css} from 'lit-element';

export const style = css`a{color:red}`;
export default style;
```

Finally we can import to LitElement

```typescript
import {LitElement} from 'lit-element';
import style from './test-css.js';

class MyElement extends LitElement {
  static styles = [style];
}
```

Process folder

`exmg-cli -s ./styles/*.scss`

Run in watch mode

`exmg-cli -w`

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