dhcli
This is a cli for dahai
Last updated 5 months ago by yangbo199315 .
MIT · Original npm · Tarball · package.json
$ cnpm install dhcli 
SYNC missed versions from official npm registry.

前端项目通用脚手架

支持vue项目/react项目/普通js项目 创建 调试 和 打包

更新说明

  • 1.0.54版本
  1. 增加了file-loader
  • 1.0.47版本
  1. 解决获取目录名的windows平台兼容问题
  2. 添加了必要的依赖
  3. 依赖版本修改
  • 1.0.45版本
  1. 由于某些框架的兼容问题,修改为多出口方式
  2. 打包后会有index.js(导出路由对象),dev.js(构建后的页面)
  3. 启动开发调试请访问localhost:8080/dev.html
  • 1.0.42版本
  1. 增加了用户自定义设置proxy
  2. 修改了vue模板
  • 1.0.39版本
  1. 创建项目增加了react模板
  • 1.0.38版本
  1. 去除无用代码
  • 1.0.37版本
  1. 修复build 后文件加载bug
  2. 优化 build.js 文件
  • 1.0.36版本
  1. 优化了项目创建方式
  2. 支持了vue项目
  3. 关闭了react项目创建,将在下一个大版本完善

使用文档

  • 全局安装依赖

npm install -g dhcli

  • mac全局安装依赖

sudo npm install -g dhcli

  • 初始化项目

建议先自行创建项目目录,如找不到项目目录会自动根据项目名创建目录

cli init

  • 启动开发调试

npm run dev

  • 编译打包
  1. 编译测试包

npm run build-qa

  1. 编译生产包

npm run build


详细说明

  • 关于项目初始化

项目初始化需要开发者输入package.json中的一些字段,如需要自动在gitlab创建项目请输入你的gitlab地址和一个有效的Private token,这将会自动在你的gitlab上创建此项目并关联到本地git

  • 关于打包编译

如不输入tab名,将自动以当前tag名+时间戳的方式命名!

编译成功后会自动打git tag,需要开发者自行输入tag名,编译测试包tag名以d开头,生产包tag名以p开头

github地址

github

Current Tags

  • 1.0.60                                ...           latest (5 months ago)

58 Versions

  • 1.0.60                                ...           5 months ago
  • 1.0.59                                ...           5 months ago
  • 1.0.58                                ...           5 months ago
  • 1.0.57                                ...           5 months ago
  • 1.0.56                                ...           6 months ago
  • 1.0.55                                ...           7 months ago
  • 1.0.54                                ...           7 months ago
  • 1.0.53                                ...           7 months ago
  • 1.0.52                                ...           7 months ago
  • 1.0.51                                ...           7 months ago
  • 1.0.50                                ...           7 months ago
  • 1.0.49                                ...           7 months ago
  • 1.0.48                                ...           9 months ago
  • 1.0.47                                ...           9 months ago
  • 1.0.46                                ...           9 months ago
  • 1.0.45                                ...           9 months ago
  • 1.0.44                                ...           10 months ago
  • 1.0.43                                ...           10 months ago
  • 1.0.42                                ...           10 months ago
  • 1.0.41                                ...           10 months ago
  • 1.0.40                                ...           10 months ago
  • 1.0.39                                ...           a year ago
  • 1.0.38                                ...           a year ago
  • 1.0.37                                ...           a year ago
  • 1.0.36                                ...           a year ago
  • 1.0.35                                ...           a year ago
  • 1.0.34                                ...           a year ago
  • 1.0.33                                ...           a year ago
  • 1.0.32                                ...           a year ago
  • 1.0.31                                ...           a year ago
  • 1.0.29                                ...           a year ago
  • 1.0.28                                ...           a year ago
  • 1.0.27                                ...           a year ago
  • 1.0.26                                ...           a year ago
  • 1.0.25                                ...           a year ago
  • 1.0.24                                ...           a year ago
  • 1.0.23                                ...           a year ago
  • 1.0.22                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 2
Last Month 66
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |