0.2.4 β’ Published 6 years ago
@hzfe/wxapp-cli v0.2.4
wxapp-cli
A command line interface for Mini Program.
Install
npm install -g @hzfe/wxapp-cli
Usage
wxa <command> [args]
Commands:
wxa new [projectname] [templaterepo] π New a mini program project
wxa gen [type] [name] [root] π Generate specific type files.
[aliases: g, generate]
Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
wxa new
Create new mini program with out-of-the-box support for Babel, ESLint, TypeScript, PostCSS, etc.
wxa new [projectname] [templaterepo]
Positionals:
projectname π Your project name
templaterepo π Git repository or local directory
Options:
-y, --yes Use default setting [boolean]
-h, --help Show help [boolean]
wxa gen
Generate pages, subPackages, components with a simple command.
wxa gen [type] [name] [root]
Positionals:
type π Type to generate. (Available choices: [page, spage, cpn])
name π Name used for files. (Path can be included in the name)
root π Root used for subpackage files. (Only available for [spage] type)
Options:
-h, --help Show help [boolean]
Advancetodo
You can create a mini program using your customize project template.