prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Add a Component Manifest generator #202

Closed jasoncomes closed 5 months ago

jasoncomes commented 5 months ago

Addition of a Component Manifest generator to the Spectral tool, which is used for the integration between the Component and Code Native Integration (CNI) processes.

The key features of this addition include:

  1. A command-line interface (CLI) executable with the following flags:

    • --help: Provides information about the available commands and options.
    • --dry-run: Allows for a test run without actually generating the manifest.
    • --signature: Generates a signature for the manifest.
  2. The ability to run the CLI executable from within the Component directory where Spectral is installed. This allows the tool to retrieve the necessary data from the Component entry.

  3. A scaffolding data and EJS (Embedded JavaScript) template generator, which includes the following templates:

    • EJS Static Templates
    • EJS Action Templates
    • EJS Datasource Templates
    • EJS Connection Templates
    • EJS Trigger Templates

These templates are used to generate the Component Manifest, which is a crucial part of the integration between the Component and Code Native Integration (CNI) processes.

Includes Code Scaffolding