Skip to content

Commit

Permalink
feat(shared): move common components to shared package (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
debsmita1 committed Jul 12, 2023
1 parent 255fb94 commit 118a38b
Show file tree
Hide file tree
Showing 29 changed files with 1,600 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/shared-react/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
3 changes: 3 additions & 0 deletions plugins/shared-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Janus React Common

Shared code for utils, types, and React components for the Janus frontend plugins.
53 changes: 53 additions & 0 deletions plugins/shared-react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "@janus-idp/shared-react",
"version": "0.1.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts"
},
"backstage": {
"role": "common-library"
},
"scripts": {
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test --passWithNoTests --coverage",
"clean": "backstage-cli package clean",
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@kubernetes/client-node": "^0.18.1",
"classnames": "2.3.2"
},
"peerDependencies": {
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "0.22.7",
"@backstage/core-app-api": "1.8.0",
"@backstage/dev-utils": "1.0.15",
"@backstage/test-utils": "1.3.1",
"@testing-library/jest-dom": "5.10.1",
"@testing-library/react": "12.1.3",
"@testing-library/user-event": "14.0.0",
"@types/node": "18.16.16",
"msw": "1.2.1",
"cross-fetch": "3.1.6"
},
"files": [
"dist"
],
"repository": "github:janus-idp/backstage-plugins",
"keywords": [
"backstage",
"plugin"
],
"homepage": "https://janus-idp.io/",
"bugs": "https://github.com/janus-idp/backstage-plugins/issues"
}
Loading

0 comments on commit 118a38b

Please sign in to comment.