@architect-io/dependency-manager
TypeScript icon, indicating that this package has built-in type declarations

1.14.4 • Public • Published

Architect dependency-manager

Library used for ingesting component specs and converting them to application graphs.

Generating and using json schema

This project uses the JSON schema spec to help validate architect.yml files describing components. In order to make this schema easier to manage, we use the typescript-json-schema library to generate the schema definition from a typescript interface.

After you've made changes to the typescript files representing the schema(s), run the associated generate:schema command:

$ npm run generate:schema:v1

This will write the schema file to ./v1-component-schema.json.

Testing the schema in VS Code

The first thing you'll need to do is install YAML extension for VS Code. This is needed to allow your editor to respond to json schema templates found locally or in the json schema store, a public repository of json schemas associated with filenames.

Once you have the extension installed, ppen your VS Code settings.json file and associate the generated schema file with the architect.yml and architect.yaml file types:

{
  "yaml.schemas": {
    "<path-to-cli>/src/dependency-manager/v1-component-schema.json": ["architect.yaml", "architect.yml"]
  }
}

Be sure to replace <path-to-cli> with the directory where you checked out the Architect CLI project.

Publishing schema to public store

Unfortunately this can't be automated. You'll have to submit a PR to the repository and follow the contributing guidelines:

https://github.com/SchemaStore/schemastore/blob/master/CONTRIBUTING.md

Readme

Keywords

none

Package Sidebar

Install

npm i @architect-io/dependency-manager

Weekly Downloads

105

Version

1.14.4

License

GPL-3.0

Unpacked Size

389 kB

Total Files

158

Last publish

Collaborators

  • ryancahill444
  • mueschm-architect
  • david.thor