Repository navigation
Release v3.132.0
You can now create an extension package with one command: cratis extension new.
Added
cratis extension newcreates a full extension (an OCI artifact) or a frontend-only component package from theCratis.Templates.Extensionstemplates. A full extension takes a--backend(csharp,kotlin,go,typescriptornone) and a--frontend(react,mount,screenplayornone); a frontend-only package takes a--component(reactormount). Every package gets acontract.playwith its manifest, a placeholder icon and image, a static HTML placeholder per frontend component, a sample ability or component with specs, a README and the build and publish scripts. See https://github.com/Cratis/cli/blob/main/Documentation/reference/extension-new.md. (part of #575)- An interactive wizard that asks only what the flags did not answer. The wizard and the flags build the same request and are held to the same rules, so they create the same package.
--no-promptsnever asks;--dry-runlists the files;--format jsonreports them. --template-path,--packageand--versionchoose where the templates come from. The CLI fails with exit code 2 and names the symbol when a template does not offer a choice the request needs.- The template interface, the names of the templates and the symbols the CLI passes to them, is documented so the templates can be built against it.