Skip to content
wechat small app cli tool
Ruby JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
exe
lib/weapp
spec
.gitignore
.rspec
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
weapp-cli.gemspec

README.md

weapp-cli

A command line that generates a weapp project comfortably.

Installation

$ gem install weapp-cli

Usage

First, generate a weapp project from zero:

$ weapp-cli new project

it will generate files like this:

$ weapp-cli new project
create  project/README.md
create  project/app.json
create  project/app.js
create  project/app.wxss
create  project/.gitignore
create  project/pages/index/index.js
create  project/pages/index/index.wxml
create  project/pages/index/index.wxss

Second, generate a new page into a weapp project:

$ cd project
$ weapp-cli page page1

it will generate files like this:

$ weapp-cli page page1
create  pages/page1/page1.js
create  pages/page1/page1.wxml
create  pages/page1/page1.wxss
insert  app.json

With weapp-cli, you can focus on your bussiness logic at weapp development.

Roadmap

  • New project
  • New page
  • Help
  • Support ES6
  • Add wiki for it
  • Add more test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/windy/weapp-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.