Note
This package includes some code from other libraries listed in THIRD-PARTY-LICENSES.
@iot-app-kit/scene-composer
Build command
Run the following command to build the package.
The library will be built and copied to the dist
folder.
npm run build
Analyze command
You can use the following tool to analyze the releasing bundle content:
npm install -g source-map-explorer
source-map-explorer dist/index.js
Storybook
To make the storybook site run:
npm run bootstrap
npm run build-storybook
npm run start -w packages/scene-composer
Optionally, if you want to pre-load AWS credentials from a local profile, you can set the AWS_PROFILE
argument on the command line:
AWS_PROFILE=AppKit npm run start -w packages/scene-composer
Debugging
Scene composer is embedded with a custom logging system based on debugjs. With this being a complex component with lots of potential things going on, this system allows you to filter logs based on more specific attributes, and ultimately reduces noise.
What you will notice is by default, there are very few messages in the browser console, this is because they are hidden by default from the end user, so you need to enable them in local storage. To do this, run this command in your browser console:
localStorage.debug = '*';
localStorage.debug = '*,-verbose:*';
localStorage.debug = 'ruleEvaluator*';