plugins/tech-radar: migrate to new plugin pattern and avoid using api for config

This commit is contained in:
Patrik Oldsberg
2020-09-07 20:04:23 +02:00
parent 817d958026
commit 66a2a870bc
13 changed files with 102 additions and 269 deletions
+2 -10
View File
@@ -15,14 +15,6 @@
*/
import { createDevApp } from '@backstage/dev-utils';
import { plugin } from '../src/plugin';
import { techRadarApiRef, TechRadar } from '../src';
import { plugin } from '../src';
createDevApp()
.registerPlugin(plugin)
.registerApiFactory({
implements: techRadarApiRef,
deps: {},
factory: () => new TechRadar({ width: 1500, height: 800 }),
})
.render();
createDevApp().registerPlugin(plugin).render();