Skip to content

Latest commit

 

History

History
128 lines (90 loc) · 1.91 KB

File metadata and controls

128 lines (90 loc) · 1.91 KB

Scripts

der

der 客户端命令

客户端命令

init

$ cd your-project

$ der init my-project  -f -d

publish

$ cd your-project

$ der go -d
# 更新平台、token
$ der go -d -rs -rt
# 更新平台、token、仓库类型
$ der go -d -rs -rt -ro
# 发布tag
$ der go -re

tpl

$ der tpl

# Or only project template
$ der tpl --pro
# Or only component template
$ der tpl --com

cache

$ der cache --all

# or 查看本地Git缓存信息
$ der cache --git
# or 查看本地模板缓存信息
$ der cache --template
# or 查看本地依赖缓存信息
$ der cache --dependencies
# or 查看App Token
$ der cache --token

der-cli 开发者调试命令

本地调试

init

$ cd your-project

$ der init my-project
$ der init my-project -d
$ der init my-project -f
$ der init my-project -d -f

publish

$ cd your-project

$ der go -tp D:\\repository\\QuickStart\\der-cli\\commands\\publish -d
# 更新平台、token
$ der go -tp D:\\repository\\QuickStart\\der-cli\\commands\\publish -d -rs -rt
# 更新平台、token、仓库类型
$ der go -tp D:\\repository\\QuickStart\\der-cli\\commands\\publish -d -rs -rt -ro
# 发布tag
$ der go -tp D:\\repository\\QuickStart\\der-cli\\commands\\publish -re

lerna 命令

新建模块

$ lerna create @der-cli/my-module

安装依赖

$ lerna add axios
# or
$ yarn add axios

代码提交

$ npm config set registry https://registry.npmjs.org/
$ yarn cp

der 模板

发布 npm

$ npm publish

der 服务端

der-cli-server: der-cli/der-cli-server

本地调试

$ yarn dev

# or
$ yarn start