@lvl/wxapp-cli

0.5.4 • Public • Published

wxapp CLI

Install

# 设置 @cis scope
npm config set @lvl:registry https://atc.bmw-brilliance.cn/nexus/repository/npm-group/

# 全局安装cli
npm install @lvl/wxapp-cli -g
# 如果安装有`node-sass`报错 请尝试:
npm install @lvl/wxapp-cli -g --unsafe-perm  

Usage

wxapp-cli -v # 查看版本
wxapp-cli -h # 查看帮助

# 创建新项目
wxapp-cli create wxapp-test

# 在项目中新增 页面/组件/分包
# wxapp-cli add page <file-name> --page-name <page-name>
wxapp-cli add page home --page-name home
# wxapp-cli add component <file-name>
wxapp-cli add component product-item
# wxapp-cli add package <file-name> --package-name <package-name>
wxapp-cli add package mypkg --package-name mypkg

# 开发构建
wxapp-cli dev

# 正式构建
wxapp-cli prod
node -v
v10.4.1
# 更新模版
wxapp-cli update

Readme

Keywords

Package Sidebar

Install

npm i @lvl/wxapp-cli

Weekly Downloads

2

Version

0.5.4

License

ISC

Unpacked Size

30.1 kB

Total Files

22

Last publish

Collaborators

  • lvleinpm