From d45c1600e7a4f40f8fd686e95d52055da807d3e1 Mon Sep 17 00:00:00 2001 From: Zoran Zorica Date: Sat, 7 Sep 2024 21:34:25 +0200 Subject: [PATCH] chore: trigger changes --- .github/workflows/publish.yaml | 1 + .gitignore | 54 +++++++++++++++++++ README.md | 8 +-- .../README.md | 6 +-- plugins/daytona-web/README.md | 8 +-- plugins/daytona/README.md | 10 ++-- 6 files changed, 71 insertions(+), 16 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d69877f..bfd8591 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,6 +20,7 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' + scope: '@daytona-io' - name: Install dependencies run: yarn install diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbf8139 --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# macOS +.DS_Store + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Coverage directory generated when running tests with coverage +coverage + +# Dependencies +node_modules/ + +# Yarn 3 files +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Node version directives +.nvmrc + +# dotenv environment variables file +.env +.env.test + +# Build output +dist +dist-types + +# Temporary change files created by Vim +*.swp + +# MkDocs build output +site + +# Local configuration files +*.local.yaml + +# Sensitive credentials +*-credentials.yaml + +# vscode database functionality support files +*.session.sql + +# E2E test reports +e2e-test-report/ diff --git a/README.md b/README.md index 6152cd4..d2ae784 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # daytona-backstage-plugins Backstage Plugins for Daytona -This is scaffolded Backstage App using `create-backstage-app` command. +This is scaffolded Backstage App using `create-backstage-app` command. To start the app, run: @@ -14,6 +14,6 @@ yarn dev If you wish to add Daytona plugins to your Backstage instance. You'll need to install the below plugins. You can refer the individual plugin documentation for installation and configuration. -1. [@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider](https://www.npmjs.com/package/@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider) -2. [@adityasinghal26/daytona-web](https://www.npmjs.com/package/@adityasinghal26/daytona-web) -3. [@adityasinghal26/backstage-plugin-daytona](https://www.npmjs.com/package/@adityasinghal26/backstage-plugin-daytona) +1. [@daytona-io/backstage-plugin-auth-backend-module-daytona-provider](https://www.npmjs.com/package/@daytona-io/backstage-plugin-auth-backend-module-daytona-provider) +2. [@daytona-io/daytona-web](https://www.npmjs.com/package/@daytona-io/daytona-web) +3. [@daytona-io/backstage-plugin-daytona](https://www.npmjs.com/package/@daytona-io/backstage-plugin-daytona) diff --git a/plugins/auth-backend-module-daytona-provider/README.md b/plugins/auth-backend-module-daytona-provider/README.md index 27f0066..89cccfa 100644 --- a/plugins/auth-backend-module-daytona-provider/README.md +++ b/plugins/auth-backend-module-daytona-provider/README.md @@ -1,4 +1,4 @@ -# @adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider +# @daytona-io/backstage-plugin-auth-backend-module-daytona-provider The daytona-provider backend module for the auth plugin. @@ -46,12 +46,12 @@ The plugin can be installed by running the below command in Backstage root direc ```sh # From your Backstage root directory -yarn --cwd packages/backend add @adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider +yarn --cwd packages/backend add @daytona-io/backstage-plugin-auth-backend-module-daytona-provider ``` ```ts // In packages/backend/src/index.ts // Add the Daytona auth plugin provider -backend.add(import('@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider')); +backend.add(import('@daytona-io/backstage-plugin-auth-backend-module-daytona-provider')); ``` diff --git a/plugins/daytona-web/README.md b/plugins/daytona-web/README.md index cfa82af..aca61cb 100644 --- a/plugins/daytona-web/README.md +++ b/plugins/daytona-web/README.md @@ -1,4 +1,4 @@ -# @adityasinghal26/daytona-web +# @daytona-io/daytona-web _This package was created through the Backstage CLI_. @@ -12,7 +12,7 @@ Install the package via Yarn in your Backstage root directory: ```sh # From your Backstage root directory -yarn --cwd packages/app add @adityasinghal26/daytona-web +yarn --cwd packages/app add @daytona-io/daytona-web ``` ## Authentication Setup @@ -23,7 +23,7 @@ Backstage requires ApiFactory to interact with Daytona OAuth library and a sign- ```ts // In packages/app/src/apis.ts - import { daytonaApiFactory } from '@adityasinghal26/daytona-web'; + import { daytonaApiFactory } from '@daytona-io/daytona-web'; // Add the Daytona ApiFactory to the list of available APIs export const apis: AnyApiFactory[] = [ @@ -37,7 +37,7 @@ Backstage requires ApiFactory to interact with Daytona OAuth library and a sign- ```tsx // In packages/app/src/App.tsx - import { daytonaSignInProvider } from '@adityasinghal26/daytona-web'; + import { daytonaSignInProvider } from '@daytona-io/daytona-web'; // Add the Daytona Sign-In Provider to the available sign-in providers const app = createApp({ diff --git a/plugins/daytona/README.md b/plugins/daytona/README.md index 528164c..465263b 100644 --- a/plugins/daytona/README.md +++ b/plugins/daytona/README.md @@ -20,7 +20,7 @@ The Daytona plugin provides frontend components to connect to the Daytona API ba The package shall be installed in the Backstage root directory as below. ```sh -yarn --cwd packages/app add @adityasinghal26/backstage-plugin-daytona +yarn --cwd packages/app add @daytona-io/backstage-plugin-daytona ``` ## Setup @@ -31,13 +31,13 @@ yarn --cwd packages/app add @adityasinghal26/backstage-plugin-daytona ```bash # From your Backstage root directory - yarn add --cwd packages/app @adityasinghal26/backstage-plugin-daytona + yarn add --cwd packages/app @daytona-io/backstage-plugin-daytona ``` 2. Add to the app `EntityPage` component. Make sure to add `DaytonaOverviewComponent` right after `EntityAboutCard` under `overviewContent`. This will get the repository URL automatically from the entity location metadata to create the Daytona workspaces. Along with that, it will also list all the workspaces, specific to the repository. ```tsx - import { DaytonaOverviewContent } from '@adityasinghal26/backstage-plugin-daytona'; + import { DaytonaOverviewContent } from '@daytona-io/backstage-plugin-daytona'; // Add the DaytonaOverviewContent to show the workspaces for that entity const overviewContent = ( @@ -82,7 +82,7 @@ Ensure that the package is installed as mentioned in the Installation section. ```tsx // In packages/app/src/App.tsx - import { DaytonaPage } from '@adityasinghal26/backstage-plugin-daytona'; + import { DaytonaPage } from '@daytona-io/backstage-plugin-daytona'; // Add the route to the App path routes const routes = ( @@ -97,7 +97,7 @@ Ensure that the package is installed as mentioned in the Installation section. ```tsx // In packages/app/src/components/Root/App.tsx - import { DaytonaIcon } from '@adityasinghal26/backstage-plugin-daytona'; + import { DaytonaIcon } from '@daytona-io/backstage-plugin-daytona'; // Add the menu to the Root menu sidebar export const Root = ({ children }: PropsWithChildren<{}>) => (