Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions workspaces/boost/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../.eslintrc.cjs');
1 change: 1 addition & 0 deletions workspaces/boost/plugins/boost-common/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
42 changes: 42 additions & 0 deletions workspaces/boost/plugins/boost-common/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "@red-hat-developer-hub/backstage-plugin-boost-common",
"version": "0.1.0",
"license": "Apache-2.0",
"description": "Common functionalities for the boost plugin",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts"
},
"backstage": {
"role": "common-library",
"pluginId": "boost",
"pluginPackage": "@red-hat-developer-hub/backstage-plugin-boost-common",
"pluginPackages": [
"@red-hat-developer-hub/backstage-plugin-boost-common"
]
},
"sideEffects": false,
"scripts": {
"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.34.5"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/rhdh-plugins",
"directory": "workspaces/boost/plugins/boost-common"
}
}
22 changes: 22 additions & 0 deletions workspaces/boost/plugins/boost-common/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright Red Hat, Inc.
*
* 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 { BOOST_PLUGIN_ID } from './index';

describe('boost-common', () => {
it('should export the boost plugin ID', () => {
expect(BOOST_PLUGIN_ID).toBe('boost');
});
});
24 changes: 24 additions & 0 deletions workspaces/boost/plugins/boost-common/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright Red Hat, Inc.
*
* 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.
*/

/**
* Common types and constants for the boost plugin.
*
* @packageDocumentation
*/

/** Plugin identifier used across boost packages. */
export const BOOST_PLUGIN_ID = 'boost';
16 changes: 16 additions & 0 deletions workspaces/boost/plugins/boost-common/src/setupTests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Red Hat, Inc.
*
* 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 {};

Check warning on line 16 in workspaces/boost/plugins/boost-common/src/setupTests.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

export statement without specifiers is not allowed.

See more on https://sonarcloud.io/project/issues?id=redhat-developer_rhdh-plugins&issues=AZ6ynMsed3IkfjjzTWG0&open=AZ6ynMsed3IkfjjzTWG0&pullRequest=3358
8 changes: 8 additions & 0 deletions workspaces/boost/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3700,6 +3700,14 @@ __metadata:
languageName: node
linkType: hard

"@red-hat-developer-hub/backstage-plugin-boost-common@workspace:plugins/boost-common":
version: 0.0.0-use.local
resolution: "@red-hat-developer-hub/backstage-plugin-boost-common@workspace:plugins/boost-common"
dependencies:
"@backstage/cli": "npm:^0.34.5"
languageName: unknown
linkType: soft

"@rollup/plugin-commonjs@npm:^26.0.0":
version: 26.0.3
resolution: "@rollup/plugin-commonjs@npm:26.0.3"
Expand Down
Loading