# x-mpaas-to-uniapp

> mpaas小程序转换为 uni-app 项目

Latest version **2.0.16** (published 2022-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install x-mpaas-to-uniapp
pnpm add x-mpaas-to-uniapp
yarn add x-mpaas-to-uniapp
bun add x-mpaas-to-uniapp
```

Provides the command `xwtu`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.16 |
| Published | 2022-01-14 |
| First published | 2022-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 22 |
| Unpacked size | 755 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1808 |
| Author | zhangdaren |
| Maintainers | jamzhu |
| Keywords | weixin, qq, toutiao, weixin, alipay, baidu, miniprogram, uni-app, transformation |

## Links

- npm: https://www.npmjs.com/package/x-mpaas-to-uniapp
- Repository: https://github.com/zhangdaren/miniprogram-to-uniapp
- Homepage: https://github.com/zhangdaren/miniprogram-to-uniapp#readme
- Issues: https://github.com/zhangdaren/miniprogram-to-uniapp/issues
- npm.io page: https://npm.io/package/x-mpaas-to-uniapp

## Dependencies (22)

- [fdir](https://npm.io/package/fdir.md) ^5.1.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [clone](https://npm.io/package/clone.md) ^2.1.2
- [postcss](https://npm.io/package/postcss.md) ^8.3.6
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.0.0
- [gogocode](https://npm.io/package/gogocode.md) ^1.0.40
- [mustache](https://npm.io/package/mustache.md) ^4.2.0
- [prettier](https://npm.io/package/prettier.md) ^2.4.0
- [progress](https://npm.io/package/progress.md) ^2.0.3
- [commander](https://npm.io/package/commander.md) ^2.20.1
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.14.0
- [node-pinyin](https://npm.io/package/node-pinyin.md) ^0.2.3
- [pkg-updater](https://npm.io/package/pkg-updater.md) ^1.0.4
- [@babel/types](https://npm.io/package/@babel/types.md) ^7.15.6
- [best-require](https://npm.io/package/best-require.md) ^1.1.4
- [postcss-less](https://npm.io/package/postcss-less.md) ^5.0.0
- [postcss-scss](https://npm.io/package/postcss-scss.md) ^4.0.0
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.15.7
- [app-root-path](https://npm.io/package/app-root-path.md) ^3.0.0
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) ^7.15.4
- [@babel/generator](https://npm.io/package/@babel/generator.md) ^7.15.4
- [@babel/plugin-proposal-object-rest-spread](https://npm.io/package/@babel/plugin-proposal-object-rest-spread.md) ^7.16.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.16 (latest) — 2022-01-14
- 2.0.15 — 2022-01-14
- 2.0.14 — 2022-01-07
- 2.0.13 — 2022-01-07
- 2.0.12 — 2022-01-05
- 2.0.11 — 2022-01-05
- 2.0.10 — 2022-01-05

## README

# 转换各种小程序为 uni-app 项目 v2.0

### 基于[miniprogram-to-uniapp](https://github.com/zhangdaren/miniprogram-to-uniapp)改造，更好的支持mpaas小程序转换，非通用

===============================================================

## Npm 安装

```sh
$ npm i x-mpaas-to-uniapp -g
```

### 使用方法

```sh
Usage: xwtu [options]

Options:

  -V, --version          output the version number [版本信息]
  -i, --input <target>   the input path for weixin miniprogram project [输入目录]
  -h, --help             output usage information [帮助信息]
#   -c, --cli              the type of output project is vue-cli, which default value is false [是否转换为vue-cli项目，默认false]
  -m, --merge            merge wxss file into vue file, which default value is false [是否合并wxss到vue文件，默认false]

```

#### 示例:

##### 默认转换:

```sh
$ xwtu -i ./miniprogram-project
```

##### 将 wxss 合并入 vue 文件:

```sh
$ xwtu -i ./miniprogram-project -m
```

<!-- ##### 转换项目为 vue-cli 项目:

```sh
$ xwtu -i ./miniprogram-project -c
``` -->

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