1.3.0 • Published 2 years ago

gcli-react v1.3.0

Weekly downloads
3
License
MIT
Repository
-
Last release
2 years ago

gcli-react

项目打包编译工具

PreRequire

Node 8+

Feature

  1. 支持两种打包模式,normalcomponentnormal即打包普通react网页,使用的是webpackcomponent用于打包组件库,使用gulp

Usage

  1. Insall
gnpm install gcli-react --save-dev
  1. Use
// version
gcli-react version 

// 本地服务器
// 仅在normal模式下可用
gcli-react start

// 打包
gcli-react build

// 运行单元测试
gcli-react test
  1. Variable(仅在normal模式下可用)
名称说明默认值
APP_NAME应用名称package.json中的name值
APP_VERSION应用版本package.json中的verson值
APP_UPDATE_TIME打包时间
PUBLIC_URL资源公共路径默认 ""
CUSAPP自定义变量前缀-

Todo

  • prettier
  • 集成node打包工具
  • 在component模式下,监听文件变化自动compile