Skip to content

Latest commit

 

History

History

templates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

PureStack templates

Each directory is a publishable npm workspace containing a complete site:

Directory Package CLI alias
starter/ @purestack/template-starter starter

From sites/, run yarn purestack init. Official aliases use these local templates automatically in this checkout. To select a folder explicitly:

yarn purestack init my-site --template ../templates/starter --yes

Templates share the product version with framework packages. The root templates/* workspace pattern includes new folders in packing, dependency checks, version bumps, and release discovery. Add a template's alias and catalog entry in the CLI when making it an official Forge choice.

Each template supplies its own ignore rules in .gitignore.template. The CLI removes the .template suffix when staging project files, producing .gitignore without relying on npm to publish that reserved filename. Other project files can use the same suffix. Keep .yarnrc.yml under its real name and explicitly list both files in the template package's files array. Templates using the suffix require PureStack 1.1.36 or newer. yarn package packs templates with npm and verifies that explicitly listed files survive unchanged.

See the template package contract for required files, configuration options, verification, and publishing.