Skip to content

list and new

Lists built-in package bricks and local project bricks.

Terminal window
dart run stackchain list

Discovery order includes:

  • Package bricks/
  • Project .stackchain/bricks/
  • Project bricks/

Scaffolds a custom brick:

Terminal window
dart run stackchain new my_generator

Creates a starter under .stackchain/bricks/my_generator/.

Bricks use .tpl files with Mustache-like syntax:

  • {{name}}
  • {{name.snakeCase}}, {{name.pascalCase}}, {{name.camelCase}}, {{name.paramCase}}, {{name.titleCase}}, {{name.constantCase}}
  • Sections with # / ^

See Custom bricks for authoring guidance.