0.0.3 • Published 3 years ago

wic-applet-cli v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

wic-applet-cli

(Note: still in Dev, downloading it carefully!!!) A cli for fast generating applet projects, which import Vant Weapp as UI framework.

Install

npm install wic-applet-cli -g

Usage

Version

wic --version
wic -V

Commands

create new project

generate a new applet project with the template downloaded from wic-applet-template

wic create <projectName>

The cases below can help you to make choices:

  • When you: confirm using the native applet tabbar
    • It will: generate those pages which is in tabbar list, and set tabBar in file app.json, then import them in pages automatically

create new page

wic page <projectName> [options]
options:
  • -n --network: auto import Http Request Class
  • -l --list: define a page as a paging list, within Paging Class and list component.
  • -f --form: define a page as a form page, within the form validator

create new component

wic com <componentName> [-d]

create new util function

wic util <utilName> [-a | -c]

add build-in module

wic module <module> [-m, -t]

set global config

wic set <configKey> <configValue> [options]
Options:
  • -z: input target item is a compressed file
Keys:
  • icon-input-path
  • icon-input-name

update icon font file

use this command with iconfont

wic update-icon

How it works? 1. search for files which named download.zip 2. find the latast version 3. extract 4. read content from icon.css

Modules

address

order