New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@architect-io/dependency-manager

Package Overview
Dependencies
Maintainers
2
Versions
796
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect-io/dependency-manager

Graphing library for managing complex, service-oriented applications

latest
Source
npmnpm
Version
1.14.4
Version published
Weekly downloads
6
-99.25%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 22 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts