Merge remote-tracking branch 'origin/master' into update-jest-docs

This commit is contained in:
bnechyporenko
2023-02-13 14:40:25 +01:00
993 changed files with 25812 additions and 5127 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ import {
// export type ExamplePluginOptions = { exampleOption: boolean };
export const examplePlugin = createBackendPlugin({
// unique id for the plugin
id: 'example',
pluginId: 'example',
// It's possible to provide options to the plugin
// register(env, options: ExamplePluginOptions) {
register(env) {
@@ -111,7 +111,7 @@ If we wanted our plugin to accept options as well, we'd accept the options as th
```ts
export const examplePlugin = createBackendPlugin({
id: 'example',
pluginId: 'example',
register(env, options?: { silent?: boolean }) {
env.registerInit({
deps: { logger: coreServices.logger },
+1 -1
View File
@@ -40,7 +40,7 @@ i.e.`packages/backend/src/index.ts`.
```ts
// File: packages/backend/src/index.ts
import { URLReaders } from '@backstage/backend-common';
import { UrlReaders } from '@backstage/backend-common';
function makeCreateEnv(config: Config) {
// ....