You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
dist | 3 years ago | |
example | 3 years ago | |
scripts | 3 years ago | |
src | 3 years ago | |
templates | 3 years ago | |
types | 3 years ago | |
.editorconfig | 3 years ago | |
.gitignore | 3 years ago | |
README.MD | 3 years ago | |
package.json | 3 years ago | |
pnpm-lock.yaml | 3 years ago | |
rollup.config.js | 3 years ago | |
tsconfig.json | 3 years ago | |
typedoc.json | 3 years ago |
README.MD
@noderun/pp
有需求可话发送至邮箱
1549469775@qq.com
安装
npm i @noderun/pp -g
帮助
pp -h
Options:
-v, --version output the version number
-h --help 显示帮助信息
Commands:
login <token> 本地保存Gitee的私人令牌
whoami 查看私人令牌
logout 删除私人令牌
sync [options] 同步模板列表
list [options] 查看所有模板列表
check 查看配置文件
add [options] <url> <name> 添加一个模板仓库
remove <name> 删除一个模板仓库
clone <name> <target> 克隆模板仓库
copy [options] <templateDir> 简单文件夹克隆
help [command] display help for command
同步
- 在gitee创建私人令牌,权限包括gist的操作
- 复制token,执行
pp sync
同步到gist
注意操作gist的是description的pp的,请注意跟你的gist不要重复
pp sync
需要手动执行
命令行管理模板项目
- 增删查模板列表
- 克隆项目到本地
- 克隆时ejs模板变量渲染
- 代码整理
- 同步功能
- 可展示表格
pp list --table
- 增加
inquirer
自定义项目变量(beta)
TODO
- 代码整理
- 修改前确认是否与远端同步