# miniapp-builder-shared

> miniapp project builder shared lib

Latest version **0.3.0** (published 2021-12-15) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install miniapp-builder-shared
pnpm add miniapp-builder-shared
yarn add miniapp-builder-shared
bun add miniapp-builder-shared
```

## 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.3.0 |
| Published | 2021-12-15 |
| First published | 2020-08-21 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 34.5 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 74 |
| Author | Rax Team |
| Maintainers | rax-publisher |

## Links

- npm: https://www.npmjs.com/package/miniapp-builder-shared
- Repository: https://github.com/raxjs/miniapp
- Homepage: https://github.com/raxjs/miniapp#readme
- Issues: https://github.com/raxjs/miniapp/issues
- npm.io page: https://npm.io/package/miniapp-builder-shared

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [execa](https://npm.io/package/execa.md) ^5.0.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.0.1
- [enhanced-resolve](https://npm.io/package/enhanced-resolve.md) ^4.3.0

## Recent versions

- 0.3.0 (latest) — 2021-12-15
- 0.3.1-alpha.1 (alpha) — 2022-01-10
- 0.3.0-rc.5 (rc) — 2021-12-06
- 0.2.12-0 (beta) — 2021-11-01
- 0.3.0-rc.4 — 2021-12-06
- 0.3.0-alpha.8 — 2021-12-06
- 0.3.0-rc.3 — 2021-12-03
- 0.3.0-rc.2 — 2021-12-03
- 0.3.0-rc.1 — 2021-12-02
- 0.3.0-alpha.7 — 2021-11-10
- 0.3.0-alpha.6 — 2021-11-10
- 0.3.0-alpha.5 — 2021-11-10
- 0.3.0-alpha.4 — 2021-11-09
- 0.3.0-alpha.3 — 2021-11-04
- 0.2.12 — 2021-11-03
- … 39 more at https://npm.io/package/miniapp-builder-shared/versions

## README

## Shared lib for miniapp builder

### separateNativeRoutes

Separate native miniapp pages, it will return native page list and rax page list.

### normalizeStaticConfig

Normalize static config to parse subpackages mode.

### getPluginConfig

It will return a valid plugin config for miniapp.

### pathHelper

It will export the following methods:
  - `relativeModuleResolve`
  - `normalizeOutputFilePath`
  - `getRelativePath`
  - `getDepPath`
  - `absoluteModuleResolve`
  - `getPlatformExtensions`
  - `isNativePage`
  - `removeExt`
  - `getHighestPriorityPackageJSON`
  - `getBundlePath`

### platformMap

It will return miniapp platform and suffix name correspondence.

### constants

It will return miniapp related constants

### autoInstallNpm

It will install npm for native miniapp automatically

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