Skip to content

Release v1.9.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:31
31a7372

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-extension for a full extension, and cratis-extension-package for a frontend-only component package. See the extension templates guide. (#104)
  • cratis-extension takes Backend (csharp, kotlin, go, typescript or none) and Frontend (react, mount, screenplay or none), and every combination is valid, including none with none. cratis-extension-package takes Component (react or mount). Both take DisplayName, Description and Publisher, and the package name is the template name.
  • Every package contains contract.play with 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 .extensionignore and a README. Each package passes cratis extension verify without 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.extensions are published, the generated scripts use a local build when CRATIS_STAGE_SDK or CRATIS_SCENE_SDK is set, and the README says how.
  • Documentation for the templates, linked with the Screenplay, Stage, Scene and Cratis CLI documentation.

Changed

  • Cratis.Templates.Extensions is packed and published with the other template packages in each release. It is not part of Cratis.Templates.