remove apiRef register, pr fixes

Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
Alex Rybchenko
2022-03-11 13:21:08 +01:00
parent 8411f85ee8
commit 7fcae219d1
6 changed files with 11 additions and 21 deletions
+1 -3
View File
@@ -1,3 +1 @@
module.exports = {
extends: [require.resolve('@backstage/cli/config/eslint')],
};
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
+2 -1
View File
@@ -4,7 +4,8 @@ Plugin displays events from google calendar
## Getting started
The plugin exports a `gcalendarApiRef`. Add this to the App's `apis.ts`:
The plugin exports `HomePageCalendar` widget for the Homepage.
If your homepage is not static JSX add `gcalendarApiRef` to the App's `apis.ts`:
```ts
import {
+4 -2
View File
@@ -9,6 +9,9 @@
"main": "dist/index.esm.js",
"types": "dist/index.d.ts"
},
"backstage": {
"role": "frontend-plugin"
},
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
@@ -16,8 +19,7 @@
"test": "backstage-cli package test",
"lint": "backstage-cli package lint",
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack",
"diff": "backstage-cli plugin:diff"
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@backstage/core-components": "^0.9.1",