# jsx2mp-cli

> A cli tool to transform Rax JSX based project to MiniApp.

Latest version **0.3.2** (published 2020-11-12) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install jsx2mp-cli
pnpm add jsx2mp-cli
yarn add jsx2mp-cli
bun add jsx2mp-cli
```

Provides the command `jsx2mp`.

## 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.2 |
| Published | 2020-11-12 |
| First published | 2019-08-05 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 23 |
| Unpacked size | 25.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rax Team |
| Maintainers | zeroling, likai757, solojiang, chriscindy, rax-publisher |

## Links

- npm: https://www.npmjs.com/package/jsx2mp-cli
- Homepage: https://github.com/raxjs/miniapp#readme
- npm.io page: https://npm.io/package/jsx2mp-cli

## Dependencies (23)

- [del](https://npm.io/package/del.md) ^5.1.0
- [ora](https://npm.io/package/ora.md) ^3.4.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [terser](https://npm.io/package/terser.md) ^4.3.8
- [webpack](https://npm.io/package/webpack.md) ^4.38.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.3.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.2
- [commander](https://npm.io/package/commander.md) ^2.20.0
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.4.1
- [kebab-case](https://npm.io/package/kebab-case.md) ^1.0.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.6
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.6
- [console-clear](https://npm.io/package/console-clear.md) ^1.1.1
- [jsx2mp-loader](https://npm.io/package/jsx2mp-loader.md) ^0.3.0
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^4.2.1
- [jsx2mp-runtime](https://npm.io/package/jsx2mp-runtime.md) ^0.4.1
- [update-notifier](https://npm.io/package/update-notifier.md) ^3.0.1
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.5.5
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.0.0
- [@babel/plugin-transform-typescript](https://npm.io/package/@babel/plugin-transform-typescript.md) ^7.7.4
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.5.5
- [@babel/plugin-proposal-export-default-from](https://npm.io/package/@babel/plugin-proposal-export-default-from.md) ^7.5.2

## Recent versions

- 0.3.2 (latest) — 2020-11-12
- 0.3.2-0 (beta) — 2020-11-03
- 0.2.23 — 2020-05-11
- 0.3.1 — 2020-04-14
- 0.3.0 — 2020-03-12
- 0.2.22 — 2020-02-05
- 0.2.21 — 2020-01-19
- 0.2.20 — 2020-01-09
- 0.2.19 — 2020-01-07
- 0.2.18 — 2020-01-02
- 0.2.16 — 2019-12-25
- 0.2.15 — 2019-12-18
- 0.2.14 — 2019-12-16
- 0.2.13 — 2019-12-09
- 0.2.12 — 2019-11-28
- … 22 more at https://npm.io/package/jsx2mp-cli/versions

## README

# jsx2mp-cli

A cli tool to transform Rax JSX based project to MiniApp.

## Usage as cli tool.

1. Create a miniapp based project using rax-cli.
	```bash
	rax init myApp
	```

2. Install jsx2mp-cli
	```bash
	npm install jsx2mp-cli -g
	```

3. Transform your project.
	```bash
	cd myApp
	jsx2mp start
	```
	The tool will keep watching your source files before being interpreted by `Ctrl + C`.

4. Use `小程序开发工具` to open `dist` directory under your project path.

> You can also use rax-scripts to build miniapp, which intergrate the jsx2mp-cli.

## Integration Testing

As project-based integration testing, the test includes the following cases:

1. import static assets

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