ws/ui: further cleanup, yarn reuse, README update

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-04-27 19:19:22 +02:00
parent ffa1882027
commit ec8b650314
9 changed files with 8 additions and 1025 deletions
-1
View File
@@ -1 +0,0 @@
playwright.config.ts
-1
View File
@@ -19,7 +19,6 @@ node_modules/
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,3 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.4.1.cjs
yarnPath: ../../.yarn/releases/yarn-4.8.1.cjs
+4 -7
View File
@@ -1,10 +1,7 @@
# [Backstage](https://backstage.io)
# Backstage UI Workspace
This is your newly scaffolded Backstage App, Good Luck!
> **Work in progress** — this workspace is not yet in use and should not be considered stable or production-ready.
To start the app, run:
This is a standalone [Yarn workspace](https://yarnpkg.com/features/workspaces) that will house the Backstage UI library packages. It is being set up as a fully isolated workspace within the Backstage monorepo, with its own dependency tree, lockfile, and tooling configuration, independent of the root workspace.
```sh
yarn install
yarn start
```
The goal is to allow the UI packages to be developed, tested, and released independently from the rest of the monorepo.
-13
View File
@@ -1,13 +0,0 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: ui
description: An example of a Backstage application.
# Example for optional annotations
# annotations:
# github.com/project-slug: backstage/backstage
# backstage.io/techdocs-ref: dir:.
spec:
type: website
owner: john@example.com
lifecycle: experimental
+3 -2
View File
@@ -26,7 +26,8 @@
"cli": {
"new": {
"globals": {
"license": "UNLICENSED"
"private": false,
"namePrefix": "@backstage/"
}
}
}
@@ -62,5 +63,5 @@
"prettier --write"
]
},
"packageManager": "yarn@4.4.1"
"packageManager": "yarn@4.8.1"
}
-66
View File
@@ -1,66 +0,0 @@
/*
* Copyright 2023 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 { defineConfig } from '@playwright/test';
import { generateProjects } from '@backstage/e2e-test-utils/playwright';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
timeout: 60_000,
expect: {
timeout: 30_000,
},
// Run your local dev server before starting the tests
webServer: process.env.CI
? []
: [
{
command: 'yarn start app',
url: 'http://localhost:3000',
reuseExistingServer: true,
timeout: 120_000,
},
{
command: 'yarn start backend',
port: 7007,
reuseExistingServer: true,
timeout: 60_000,
},
],
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: [['html', { open: 'never', outputFolder: 'e2e-test-report' }]],
use: {
actionTimeout: 0,
baseURL:
process.env.PLAYWRIGHT_URL ??
(process.env.CI ? 'http://localhost:7007' : 'http://localhost:3000'),
screenshot: 'only-on-failure',
trace: 'on-first-retry',
},
outputDir: 'node_modules/.cache/e2e-test-results',
projects: generateProjects(), // Find all packages with e2e-test folders
});
-9
View File
@@ -1,9 +0,0 @@
# The Plugins Folder
This is where your own plugins and their associated modules live, each in a
separate folder of its own.
If you want to create a new plugin here, go to your project root directory, run
the command `yarn new`, and follow the on-screen instructions.
You can also check out existing plugins on [the plugin marketplace](https://backstage.io/plugins)!