0.2.1 • Published 7 years ago

generator-mina v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Generator-mina npm package

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 and Yeoman.

$ npm i -g yo generator-mina

Usage

  • Generate mina template.
$ mkdir <project-name> && cd <project-name>
$ yo mina

Example:

$ mkdir hello-mina && cd hello-mina
$ yo mina
  • Install node_modules.
$ npm i
  • Run scripts. build for building, dev for watching
$ npm run build
$ npm run dev

You need require assets/runtime.js first when you want to use async. see the example in src/utils/login.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

0.2.1

7 years ago

0.2.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago