1.0.2 • Published 4 years ago

supermario-cli v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

前端项目脚手架

前端基础webpack封装,以实现webpack 打包编译的统一管理

install

npm install -g  @nbsupermario/cli 

脚手架使用

  • 创建项目
    	```bash
    	nsm init
    	```
  • 选择项目模版

    	```bash
    	liyingdeMacBook-Pro:t liying$ nsm init
    	? 请选择工程模版? (Use arrow keys)
    	❯ h5项目react基础模版 
    	  pc项目react基础模版 
    	```
    
    	输入项目名称 例:t_h5
    
    	```bash
    	? 请选择工程模版? h5项目react基础模版
    	? 请输入项目名称 t_h5
    	? 当前目录创建 t_h5 项目,项目模版(h5项目react基础模版)? (Y/n) 
    	```
  • 开发调试

    	```bash
    	cd t_h5
    	npm install
    	npm run dev
    	```
  • 编译预览 打包:可以通过 build:test 、build:test2、 build:test3 、build:prod build:pre 编译不通环境
    	```bash
    	npm run build
    	```
    
    	```bash
    	npm run serve
    	```

项目模版更新(主要是项目模版配置文件记录gitlab 项目模版地址)

 nsm update