@nu-art/template-forger
v0.1.4
Published
Forge real projects from template bundles (params.schema.json + fixture.txt)
Readme
template-forger
Forge real projects from template bundles.
Template bundle layout
name-of-template/
params.schema.json # JSON schema of allowed params
fixture.txt # file-system fixture with // file: headersRun config
{
"fixture": "https://host/path/to/name-of-template.zip",
"outputDir": "./target",
"params": { "package_name": "my-lib", "org": "nu-art" }
}CLI
# plan only
templateforger -c run.json --dry-run
# execute
templateforger -c run.json
# overrides
templateforger -c run.json -f file:///abs/path/to/name-of-template/ -p package_name=my-lib -o ./apps/my-libFlags
-c, --config <path>(required)-f, --fixture <url|path>-o, --output-dir <path>-p, --param <k=v>(repeatable)-d, --dry-run-w, --overwrite/--no-overwrite
License
MIT
