Skip to content

Quick Start

Here is a quick overview of how to get started with Waku templates.

Note

We will be creating a waku new template command to generate a new template containing styles soon.

Create a new template

For demonstration purposes, let's create a new template containing 1 style called My Style.

  1. Create the style directory

    Create a new subdirectory called my-style. The files you create in this directory will be copied and formatted over when waku new is ran.

  2. Create a template.json file

    Create a template.json file in the root or subdirectory of your project containing the following:

    Warning

    If you use a subdirectory, do not forget to pass the -d|--directory <path> option when using waku new.

    {
      "$schema": "https://waku.ngjx.org/static/schema.json",
      "styles": {
        "My Style": {
          "source": "style-a",
          "prompts": [
            {
              "key": "Description",
              "ask": "A brief description of your project"
            }
          ]
        }
      }
    }