plugins/tech-radar: add lighthouse api to dev env

This commit is contained in:
Patrik Oldsberg
2020-05-08 18:53:32 +02:00
parent 81cb54d52b
commit 242427be7b
+9 -1
View File
@@ -16,5 +16,13 @@
import { createDevApp } from '@backstage/dev-utils';
import { plugin } from '../src/plugin';
import { techRadarApiRef, TechRadar } from '../src';
createDevApp().registerPlugin(plugin).render();
createDevApp()
.registerPlugin(plugin)
.registerApiFactory({
implements: techRadarApiRef,
deps: {},
factory: () => new TechRadar({ width: 1500, height: 800 }),
})
.render();