Skip to content

How to use a scaffolder well

Scaffold once, then adapt; do not re-scaffold into an existing project; read what it generated; keep the config versioned.

Using a scaffolder without inheriting debt

  1. Scaffold once, at the start

    Re-scaffolding into a live project overwrites your work. Scaffold on day 0 or not at all.

  2. Read the generated code

    A scaffold you do not understand is a black box. Read the files it creates; delete what you do not need.

  3. Do not fight the defaults

    If the scaffolder's default is wrong for your case, edit the config. Do not maintain a fork of the scaffolder.

  4. Version the config

    Commit the files the scaffolder produces. Later, the diff between what you have and what a new scaffold would produce is your upgrade plan.