remove apiRef register, pr fixes
Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
module.exports = {
|
||||
extends: [require.resolve('@backstage/cli/config/eslint')],
|
||||
};
|
||||
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user