6 releases

0.2.3 Nov 12, 2024
0.2.2 Jul 20, 2024
0.1.0 Jul 1, 2024
0.0.0 Jan 30, 2024

#2727 in Command line utilities

Download history 31/week @ 2024-09-13 6/week @ 2024-09-20 14/week @ 2024-09-27 2/week @ 2024-10-04 1/week @ 2024-10-11 106/week @ 2024-11-08 25/week @ 2024-11-15 5/week @ 2024-11-22 2/week @ 2024-11-29

138 downloads per month

MIT license

23KB
464 lines

ranger

ranger is tool for templating entire folder structures using the comprehensive handlebars syntax.

Examples:

  • ranger generate local -f ./templates/example -o ./test --force
    • ranger generate local: Generate via a local template.
    • -f ./templates/example: The location of the template to use.
    • -o ./test: The output folder.
    • --force: Force overwriting the folder if it exists (delete & recreate).
  • ranger generate git --repo "https://github.com/replicadse/ranger" --branch master --folder ./templates/example -o ./test
    • ranger generate git: Generate via git repo (will temporarily check out to a temp dir that is cleared after use).
    • --repo "https://github.com/replicadse/ranger": The repository containing the template.
    • --branch: The branch to check out.
    • --folder: The folder to use within the repository.
    • -o ./test: The output folder.

Rangerfile

If the template folder (local, git, ...) contains a .ranger.yaml file, further information might be specified in there. This includes variable default values, helper functions etc.

Dependencies

~20–31MB
~525K SLoC