tmplytr
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Templatr

Create project from templates on GitHub and GitLab - specified by a .templatr file.

Installation

Use npm or yarn (or download the exe from the release page)

npm install -g tmplytr
# or
yarn add global tmplytr

Usage

tmplytr use Lauriethefish/quest-mod-template
# Will then follow you through a wizard allowing you to fill in all placeholders.

Example .templatr file:

This uses all required features except src and cachable

src can be defined when the template is not in the root of the repo.

{
  "name": "Quest Mod Template",
  "author": "Lauriethefish",
  "src": "./template",
  "description": "Template for creating QuestPatcher/BMBF mods for the Oculus Quest.",
  "placeholders": [
    {
      "match": "#{ndkpath}",
      "prompt": "The path to the android NDK",
      "cachable": true
    },
    {
      "match": "#{id}",
      "prompt": "The ID of the mod"
    },
    {
      "match": "#{name}",
      "prompt": "The name of the mod"
    },
    {
      "match": "#{author}",
      "prompt": "The author of the mod"
    },
    {
      "match": "#{description}",
      "prompt": "The description of the mod"
    }
  ]
}

/tmplytr/

    Package Sidebar

    Install

    npm i tmplytr

    Weekly Downloads

    2

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    36.7 kB

    Total Files

    44

    Last publish

    Collaborators

    • cal117