To preview the extension without running the debugger you can install the extension from a vsix
file.
The process is as follows:
brew install npm
npm install -D ts-loader
vsce
compiler: npm install -g @vscode/vsce
vsce package
vscode-ocm-tools-X.X.X.vsix
Typescript types can be automatically generated using the OCM schema.
To generate the types run the following command:
npm run gen:types:ocm
The script used to generate the types can be found here: src/ocm/generateTypes.ts
.
This script will fetch the v2 and v3 schema documents for the specified version from the open-component-model/ocm
repository. It will then generate types based on the schema objects.
Copyright 2022 SAP SE or an SAP affiliate company and Open Component Model contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.