This library contains assets like JSON schema definitions.
npm install --save @octra/assets
You have two options to install this package und use it as UMD:
a) Install via NPM and reference local files (no internet connection needed om production).
<script type="application/javascript" src="node_modules/@octra/assets/index.umd.js"></script>
b) Reference remote file (internet connection needed on production).
<script type="application/javascript" src="https://unpkg.com/@octra/assets/index.umd.js"></script>
Import the classes and functions from @octra/assets
. For example
import {OctraGuidelinesJSONSchema} from "@octra/assets";
All functions and classes are available via global scope OctraAssets
. For example:
/*
make sure that you have injected the umd bundle as described before.
*/
const guidelinesJSONSchema = OctraAssets.OctraGuidelinesJSONSchema;
You can find more information about classes and functions of @octra/assets
here.