devpaul / modern-clippy

Modern implementations of Clippy for the web
https://devpaul.github.io/modern-clippy/
5 stars 0 forks source link

Create bundles #8

Closed devpaul closed 5 years ago

devpaul commented 5 years ago

As a dev I want to be able to build the generic agent package as a stand-alone product to support quicker builds.

As a user I want the quickest experience possible. The agent package should not include any asset bundles. They should be loaded separately and asynchronously so as to not block the page.

Suggested changes

devpaul commented 5 years ago

Bundles are built by the tools package using a BuildConfiguration to produce an AgentConfiguration JSON file from the agents package. I ended up using ts-node to load the BuildConfiguration on the fly so it could be built into a cli too with TypeScript support.

The Agent web component now accepts a string as part of load() and will fetch and load these JSON based AgentConfigurations.