(Note: still in Dev
, use it carefully!!! ✋💨💨💨)
A scaffold uesd to fast develop weapp projects.
prerequisite: Node Git
npm install wic-weapp-cli -g
wic --version
wic -V
generate a new weapp project with the template downloaded from 🏆 wic-weapp-template
wic init <projectName>
wic create-page <pageName> [ -d | -f | -l ]
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 |
wic rename-page <page-destination> <new name>
wic move-page <current-destination> <target-destination>
wic delete-page <page-destination>
Refer to: Components
wic add-com <componentName>
wic create-com <componentName>
Refer to: Utils
wic util -a <utilName>
wic util -c <utilName>
Refer to: Modules
wic add-module <moduleName> [-m, -t]
- 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
- icon-input-path
- icon-input-name
To implement easy icon update with iconfont , only need the following steps: 🙈
- Set
icon-file-path
&icon-file-name
. - Download files from iconfont to
icon-file-path
. - Execute the following command.
wic update-icon [-r]
short | long | descirption |
---|---|---|
-r | --remove | remove iconfont file after updating, Notice: This 'remove' means that deleting file Thoroughly! |