# lafiya

> 3784211422 The one stop CLI for using the lafiya 3.0 Frontend app.

Latest version **4.5.0-lafiya** (published 2023-06-11) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install lafiya
pnpm add lafiya
yarn add lafiya
bun add lafiya
```

Provides the command `lafiya`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.5.0-lafiya |
| Published | 2023-06-11 |
| First published | 2023-05-02 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 12.0.0 |
| Dependencies | 27 |
| Unpacked size | 104.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lafiya |
| Keywords | openmrs, microfrontends, cli, tool |

## Links

- npm: https://www.npmjs.com/package/lafiya
- Repository: https://github.com/lafiya-plus/openmrs-esm-core
- Homepage: https://github.com/openmrs/openmrs-esm-core#readme
- Issues: https://github.com/lafiya-plus/openmrs-esm-core/issues
- npm.io page: https://npm.io/package/lafiya

## Dependencies (27)

- [ejs](https://npm.io/package/ejs.md) ^3.1.8
- [tar](https://npm.io/package/tar.md) ^6.0.5
- [glob](https://npm.io/package/glob.md) ^7.1.3
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [yargs](https://npm.io/package/yargs.md) ^17.6.2
- [pacote](https://npm.io/package/pacote.md) ^15.0.0
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [cssnano](https://npm.io/package/cssnano.md) ^5.0.16
- [postcss](https://npm.io/package/postcss.md) ^8.4.6
- [webpack](https://npm.io/package/webpack.md) ^5.75.0
- [inquirer](https://npm.io/package/inquirer.md) ^7.3.3
- [swc-loader](https://npm.io/package/swc-loader.md) ^0.2.3
- [typescript](https://npm.io/package/typescript.md) ~4.5.2
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^4.10.0
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.2
- [@pnpm/npm-conf](https://npm.io/package/@pnpm/npm-conf.md) ^2.1.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^6.2.1
- [npm-registry-fetch](https://npm.io/package/npm-registry-fetch.md) ^14.0.3
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^4.10.1
- [copy-webpack-plugin](https://npm.io/package/copy-webpack-plugin.md) ^10.0.0
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.5.0
- [webpack-pwa-manifest](https://npm.io/package/webpack-pwa-manifest.md) ^4.3.0
- [@lafiya/esm-app-shell](https://npm.io/package/@lafiya/esm-app-shell.md) 4.5.0-lafiya
- [@lafiya/webpack-config](https://npm.io/package/@lafiya/webpack-config.md) 4.5.0-lafiya
- [workbox-webpack-plugin](https://npm.io/package/workbox-webpack-plugin.md) ^6.4.1
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) ^2.4.5
- [browserslist-config-openmrs](https://npm.io/package/browserslist-config-openmrs.md) ^1.0.1

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

- 4.5.0-lafiya (latest) — 2023-06-11
- 4.4.0-lafiya.1 — 2023-05-05
- 4.4.0-lafiya — 2023-05-04
- 4.4.0 — 2023-05-02

## README

# lafiya
3784211422
The one stop CLI for using the lafiya 3.0 Frontend app.

## Prerequisites

You need Node.js with NPM. We recommend using version 16.17 (LTS) or later.

## Installation

You can run the tool without installation using `npx`, which is part of NPM. Just make sure to fulfill the prerequisites.

Alternatively, install the application globally using `npm i lafiya -g`. Then you can run the tool without `npx`, e.g., instead of `npx lafiya ...` you run `lafiya ...`.

## Available Commands

The following commands are available. For an up-to-date help on your installation run `npx lafiya --help`.

The `--help` flag can also be applied to any command below, resulting in detailed information about the available options.

### `start`

> For developers.

Starts the app shell configured for the SPA reference application. Includes a default import map working against a working snapshot on the CDN.

Example:

```sh
# run the command
npx lafiya
```

### `develop`

> For developers and implementers.

Performs a debug build of the app shell and runs it against a given lafiya backend. Can be proxied to any network and used with any import map configuration.

Example:

```sh
# run the command
npx lafiya develop
```

### `build`

> For implementers.

Builds the app shell with a given configuration. Provides the assets necessary for the app shell in a distribution.

Example:

```sh
# run the command
npx lafiya build
```

### `assemble`

> For implementers.

Assembles an import map incl. assets to provide the frontend module assets for a distribution.

Example:

```sh
# run the command
npx lafiya assemble
```

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