jameslnewell / scaffold

0 stars 0 forks source link

When scaffold is applied save the scaffold name and options so they can be re-used to run the scaffold again later #1

Open jameslnewell opened 2 months ago

jameslnewell commented 2 months ago

When scaffold is applied save the scaffold name and options so they can be re-used to run the scaffold again later.

e.g.

First time generating the scaffold:

scaffold @foo/bar/create --apply -- --color=purple

The file scaffold name and options which gets generated .scaffold

scaffold:
  name: @foo/bar/create
  opts:
    color: purple

Later, re-generating the scaffold:

# reads .scaffold to get the name and options
scaffold
jameslnewell commented 2 months ago

Could this be done as a scaffold itself?

Because some scaffolds, usually the initial scaffold, we would want to save settings for. For other things eg new controller it wouldn't want to save the settings