A command line interface for Mini Program.
npm install -g @hzfe/wxapp-cli
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]
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]
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]
You can create a mini program using your customize project template.