Repository navigation
Release v1.9.0
cratis extension new can now create extension packages from a new template package, Cratis.Templates.Extensions.
Added
Cratis.Templates.Extensions, a template package of its own, with two templates:cratis-extensionfor a full extension, andcratis-extension-packagefor a frontend-only component package. See the extension templates guide. (#104)cratis-extensiontakesBackend(csharp,kotlin,go,typescriptornone) andFrontend(react,mount,screenplayornone), and every combination is valid, includingnonewithnone.cratis-extension-packagetakesComponent(reactormount). Both takeDisplayName,DescriptionandPublisher, and the package name is the template name.- Every package contains
contract.playwith its manifest (display name, description, icon, marketplace image and requirements), a placeholder icon and image, a static HTML placeholder for each React or mount component, a sample ability or component with specifications, build, test, package, verify and publish scripts, a.extensionignoreand a README. Each package passescratis extension verifywithout edits. - Backends use the Stage extension SDKs and keep the sample ability in plain code, so a specification calls it without a host. React and mount components run the Scene conformance kit in their specifications.
- Until the Kotlin, Go and TypeScript backend SDKs and
@cratis/scene.extensionsare published, the generated scripts use a local build whenCRATIS_STAGE_SDKorCRATIS_SCENE_SDKis set, and the README says how. - Documentation for the templates, linked with the Screenplay, Stage, Scene and Cratis CLI documentation.
Changed
Cratis.Templates.Extensionsis packed and published with the other template packages in each release. It is not part ofCratis.Templates.