5 个不稳定版本
| 0.2.2 | 2024年7月20日 |
|---|---|
| 0.2.1 | 2024年7月17日 |
| 0.2.0 | 2024年7月17日 |
| 0.1.0 | 2024年7月1日 |
| 0.0.0 | 2024年1月30日 |
1896 在 命令行实用工具
205 每月下载量
51KB
1K SLoC
ranger
ranger 是一个使用全面 handlebars 语法来模板化整个文件夹结构的工具。
示例
ranger generate local-f./templates/example-o./test--forceranger generate local: 通过本地模板生成。-f ./templates/example: 要使用的模板位置。-o ./test: 输出文件夹。--force: 如果文件夹存在,则强制覆盖文件夹(删除并重新创建)。
ranger generate git--repo"https://github.com/replicadse/ranger" --branch master--folder./templates/example-o./testranger generate git: 通过 Git 仓库生成(将临时检出到一个临时目录,使用后清除)。--repo "https://github.com/replicadse/ranger": 包含模板的仓库。--branch: 检出的分支。--folder: 仓库中要使用的文件夹。-o ./test: 输出文件夹。
Rangerfile
如果模板文件夹(本地、git 等)包含一个 .ranger.yaml 文件,可以在其中指定更多信息。这包括变量默认值、辅助函数等。
依赖项
~19–30MB
~537K SLoC