0.1.2 • Published 3 years ago

dolphin-h5-cli v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

致力于Dolphin Framework 前端最佳实践的脚手架构建工具

1、安装:

安装 dolphin-h5-cli 脚手架工具
$ npm install -g dolphin-h5-cli  

检测是否安装成功
$ dof --version 或者 dof --help 出现相关的版本和帮助信息即代表安装成功。
2、步骤说明:

以默认模版创建weex项目

$ dof create 或者 dof c , 然后根据命令行的提示输入相关的信息,即可完成代码的配置和初始化。
    ? Project name: (dolphin-demo-project):     自定义<项目名称>

    ❯ common:  模版一:通用模版(支持)
    commom +eslint:  模版二: 配置eslint 代码风格检查

    ? version: (0.0.1):  项目 <版本信息>

    ? description: (A vue project with dophin ui):  项目 <描述>

    ? author: <作者>。

添加自定义的项目模版到个人的本地目录,类似于喜爱收藏功能,因gitlab权限问题,收藏功能暂时仅支持github创建的项目,gitlab待后续扩展支持。
 $ dof add 或者 dof a , 然后根据命令行的提示输入相关的信息,即可完成自定义模版的收藏功能。
    ? Set the custom name of the template:     <自定义模版名称>

    ? Owner/name of the template::     dolphin-ui

    ? Owner/name of the template::     <分支名称> 默认分支:master         

查看收藏的模版列表
 $ dof list 或者 dof l , 然后命令行中输入模版列表的表格。

已收藏列表中的模版项目创建项目
 $ dof init 或者 dof i , 然后根据命令行的提示输入相关的信息完成操作。
    ? please input template name:   输入收藏列表中的 <模版名称>

    ? Project name:     自定义的  <项目名称>

    ? please input the author:     <作者>

    ? Where to init the project: (./):    创建 <项目路径>  默认是当前目录下

删除收藏的模版列表
 $ dof delete 或者 dof d

文档线上地址: