Skip to content

heeroluo/back2front-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Back2Front CLI(Command line interface)

Back2Front框架配套的构建工具。

安装

npm install back2front-cli -g

使用

依赖分析

back2front depa <path> [--o <output-file>]

其中「path」为项目路径。默认情况下,依赖分析结果会输出到命令行界面,如果要保存为文件,请使用「--o」参数指定文件路径。

项目构建

构建前要在项目根目录下放置构建配置文件「build-config.json」,具体配置项见构建配置

back2front build <path> --env <env>

其中,「path」为项目路径;「env」为环境参数,可以为「dev」、「test」(测试环境)、「pre」(预发布环境)或「prod」(生产环境)。

About

Command line tools for Back2Front

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published