wic-weapp-cli

0.4.3 • Public • Published

wic-weapp-cli

Changelog Base template

(Note: still in Dev, use it carefully!!! ✋💨💨💨)

A scaffold uesd to fast develop weapp projects.

prerequisite: Node Git

Installation

npm install wic-weapp-cli -g

Usage

Version

wic --version
wic -V

Commands

Create new project

generate a new weapp project with the template downloaded from 🏆 wic-weapp-template

wic init <projectName>

Page

Create page

wic create-page <pageName> [ -d | -f | -l ]

options:

short long descirption
-l --list create a page as a paging list, within Paging Class and list component.
-f --form create a page as a form page, within the form validator
-d --dest destination

Rename page

wic rename-page <page-destination> <new name>

Move page

wic move-page <current-destination> <target-destination>

Delete page

wic delete-page <page-destination>

Component

Add built-in component

Refer to: Components

wic add-com <componentName>

Create new component

wic create-com <componentName>

Util

Add built-in util

Refer to: Utils

wic util -a <utilName>

Create util

wic util -c <utilName>

Add built-in module

Refer to: Modules

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

Set global config

  • No key & No value: Browse all configurations.
  • Just key: Check current configure about [key]
  • Key & Value: Set the [value] for [key]
wic config [configKey] [configValue]

// Example:
wic config icon-file-path C:/Users/bootcher/Desktop/download.zip

Default Keys:

  • icon-input-path
  • icon-input-name

Update icon font

To implement easy icon update with iconfont , only need the following steps: 🙈

  1. Set icon-file-path & icon-file-name.
  2. Download files from iconfont to icon-file-path.
  3. Execute the following command.
wic update-icon [-r]

Options:

short long descirption
-r --remove remove iconfont file after updating, Notice: This 'remove' means that deleting file Thoroughly!

Modules ☕

address ☕

order ☕

search ☕

wallet ☕

message ☕

feedback ☕

evaluate ☕

category ☕

product ☕

Components ☕

Address-picker ☕

Coupon ☕

Product-card ☕

Utils

AutoUpdate

FormValidator

ManualChooseLocation

Storage

getHeaderHeight

Package Sidebar

Install

npm i wic-weapp-cli

Weekly Downloads

5

Version

0.4.3

License

ISC

Unpacked Size

67.9 kB

Total Files

82

Last publish

Collaborators

  • blcher