# generator-mina

> A generator for mina with gulp, async/await support

Latest version **0.2.1** (published 2017-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-mina
pnpm add generator-mina
yarn add generator-mina
bun add generator-mina
```

## 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.2.1 |
| Published | 2017-05-16 |
| First published | 2016-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | notonlysuccess |
| Maintainers | notonlysuccess |
| Keywords | yeoman-generator, mina |

## Links

- npm: https://www.npmjs.com/package/generator-mina
- Repository: https://github.com/notonlysuccess/generator-mina
- Issues: https://github.com/notonlysuccess/generator-mina/issues
- npm.io page: https://npm.io/package/generator-mina

## Dependencies (1)

- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^0.24.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2017-05-16
- 0.2.0 — 2017-05-16
- 0.1.1 — 2016-09-25
- 0.1.0 — 2016-09-25

## README

# Generator-mina [![npm package](https://img.shields.io/npm/v/vue-cli.svg)](https://www.npmjs.com/package/generator-mina)

***It's only personal project, not official way to build weapp. Please use with caution.***

A simple generator for MINA with gulp, async/await support.

### Installation

Prerequisites: [Node.js](https://nodejs.org/en/) and [Yeoman](http://yeoman.io/).

``` bash
$ npm i -g yo generator-mina
```

### Usage

- Generate mina template.

``` bash
$ mkdir <project-name> && cd <project-name>
$ yo mina
```

Example:

``` bash
$ mkdir hello-mina && cd hello-mina
$ yo mina
```

- Install node_modules.
``` bash
$ npm i
```

- Run scripts.
  `build` for building, `dev` for watching
``` bash
$ npm run build
```
``` bash
$ npm run dev
```
- Use [微信web开发者工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html?t=1474644089359) to open `hello-mina/dist`.

- await/async usage

You need require `assets/runtime.js` first when you want to use async. see the example in `src/utils/login.js`

```js
const regeneratorRuntime = require('asstes/runtime.js')
```
### Caution

Weapp is running on JsCore, so not all package can be used. ***It's not official way, please use with caution.***

### License

[MIT](http://opensource.org/licenses/MIT)

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