dolphin-weex-cli

dolphin-weex-cli 一款搭建weex项目的脚手架

Usage no npm install needed!

<script type="module">
  import dolphinWeexCli from 'https://cdn.skypack.dev/dolphin-weex-cli';
</script>

README

DolphinWeex 前端脚手架工具

1、安装:

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

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

以默认模版创建weex项目

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

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

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

    ? description: (A weex project with dolphin weex ui):  项目 <描述>

    ? author: <作者>。

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

    ? Owner/name of the template::     alibaba/weex-ui

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

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

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

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

    ? please input the author:     <作者>

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

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