Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 736 Bytes

template-generation.md

File metadata and controls

25 lines (14 loc) · 736 Bytes

Template generation

This scaffold uses plop as a template generator.

Running generator

Run npm run plop and follow the prompts to generate a new template.

You can generate 3 standard templates:

  1. page: For an empty page
  2. component: For an empty component
  3. slice: For an empty slice

Naming

The page and component templates requires a hyphen in the name to make it a valid custom element.

For example: home-page,video-player or button-element.

You can read more about it here.

Adding templates

To add custom templates, please read the documentation on their website.