From 41ea6dfcb16d2da16282174d5afddf3312442375 Mon Sep 17 00:00:00 2001 From: Florian JUDITH Date: Sat, 25 Nov 2023 11:01:48 -0500 Subject: [PATCH] Added config definition file Signed-off-by: Florian JUDITH --- plugins/lighthouse-backend/config.d.ts | 30 +++++++++++++++++++++++++ plugins/lighthouse-backend/package.json | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 plugins/lighthouse-backend/config.d.ts diff --git a/plugins/lighthouse-backend/config.d.ts b/plugins/lighthouse-backend/config.d.ts new file mode 100644 index 0000000000..2d49f188b6 --- /dev/null +++ b/plugins/lighthouse-backend/config.d.ts @@ -0,0 +1,30 @@ +/* + * Copyright 2020 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { TaskScheduleDefinitionConfig } from '@backstage/backend-tasks'; +import { HumanDuration } from '@backstage/types'; + +export interface Config { + /** + * Configuration options for the Lighthouse backend plugin. + */ + lighthouse?: { + /** + * Schedule of the audit + */ + schedule?: HumanDuration | TaskScheduleDefinitionConfig; + }; +} diff --git a/plugins/lighthouse-backend/package.json b/plugins/lighthouse-backend/package.json index 84cff5b8eb..89d9b2f8ec 100644 --- a/plugins/lighthouse-backend/package.json +++ b/plugins/lighthouse-backend/package.json @@ -24,7 +24,8 @@ "lighthouse" ], "files": [ - "dist" + "dist", + "config.d.ts" ], "scripts": { "build": "backstage-cli package build",