ac11b898ba
Signed-off-by: Axel Hecht <axel@pike.org>
Scaffolder contrib tools
Testing Templates with Dry-run
Scaffolder templates support anything that backstage.io and custom actions can do, so testing them is hard without actually running the instance of Backstage that they're designed for.
The command line script might offer a way for you to do so using the dry-run API used for the Template Editor. Run it against a running instance, either locally or remote, and use it like
scaffolder-dry http://localhost:7007/ template-directory values.yml output-directory
If you're using backend-to-backend authentication, either
- pass a front-end auth token from a current browser session via
--token $FRONTEND_TOKEN, - have the tool create a b2b token for a given base64 encoded backend secret via
--backend-secret $BACKEND_SECRET.