diff --git a/workspaces/theme/packages/theme/.eslintrc.js b/workspaces/theme/packages/theme/.eslintrc.js new file mode 100644 index 00000000..e2a53a6a --- /dev/null +++ b/workspaces/theme/packages/theme/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require('@backstage/cli/config/eslint-factory')(__dirname); diff --git a/workspaces/theme/packages/theme/README.md b/workspaces/theme/packages/theme/README.md new file mode 100644 index 00000000..3144cada --- /dev/null +++ b/workspaces/theme/packages/theme/README.md @@ -0,0 +1,12 @@ +# @red-hat-developer-hub/theme + +_This package was created through the Backstage CLI_. + +## Installation + +Install the package via Yarn: + +```sh +cd # if within a monorepo +yarn add @red-hat-developer-hub/theme +``` diff --git a/workspaces/theme/packages/theme/package.json b/workspaces/theme/packages/theme/package.json new file mode 100644 index 00000000..0cde6a0e --- /dev/null +++ b/workspaces/theme/packages/theme/package.json @@ -0,0 +1,38 @@ +{ + "name": "@red-hat-developer-hub/theme", + "version": "0.1.0", + "main": "src/index.ts", + "types": "src/index.ts", + "license": "Apache-2.0", + "private": true, + "publishConfig": { + "access": "public", + "main": "dist/index.esm.js", + "types": "dist/index.d.ts" + }, + "repository": { + "type": "git", + "url": "https://github.com/redhat-developer/rhdh-plugins", + "directory": "workspaces/theme/packages/theme" + }, + "backstage": { + "role": "web-library" + }, + "sideEffects": false, + "scripts": { + "start": "backstage-cli package start", + "build": "backstage-cli package build", + "lint": "backstage-cli package lint", + "test": "backstage-cli package test", + "clean": "backstage-cli package clean", + "prepack": "backstage-cli package prepack", + "postpack": "backstage-cli package postpack" + }, + "devDependencies": { + "@backstage/cli": "^0.28.0", + "@testing-library/jest-dom": "^6.0.0" + }, + "files": [ + "dist" + ] +} diff --git a/workspaces/theme/packages/theme/src/index.ts b/workspaces/theme/packages/theme/src/index.ts new file mode 100644 index 00000000..c7ce5c09 --- /dev/null +++ b/workspaces/theme/packages/theme/src/index.ts @@ -0,0 +1,16 @@ +/* + * Copyright 2024 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. + */ +export {}; diff --git a/workspaces/theme/packages/theme/src/setupTests.ts b/workspaces/theme/packages/theme/src/setupTests.ts new file mode 100644 index 00000000..658016ff --- /dev/null +++ b/workspaces/theme/packages/theme/src/setupTests.ts @@ -0,0 +1,16 @@ +/* + * Copyright 2024 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 '@testing-library/jest-dom'; diff --git a/workspaces/theme/yarn.lock b/workspaces/theme/yarn.lock index 3e04e413..93631f28 100644 --- a/workspaces/theme/yarn.lock +++ b/workspaces/theme/yarn.lock @@ -10263,6 +10263,15 @@ __metadata: languageName: node linkType: hard +"@red-hat-developer-hub/theme@workspace:packages/theme": + version: 0.0.0-use.local + resolution: "@red-hat-developer-hub/theme@workspace:packages/theme" + dependencies: + "@backstage/cli": ^0.28.0 + "@testing-library/jest-dom": ^6.0.0 + languageName: unknown + linkType: soft + "@remix-run/router@npm:1.21.0": version: 1.21.0 resolution: "@remix-run/router@npm:1.21.0"