Skip to content

Commit

Permalink
feat(heureka) : switch to npm deps for juno packages (#266)
Browse files Browse the repository at this point in the history
* feat(heureka) : update juno-ui-components via installing with npm

* feat(heureka) : switch to npm deps for juno packages
  • Loading branch information
hodanoori authored Jul 30, 2024
1 parent 98908d0 commit 32d4935
Show file tree
Hide file tree
Showing 20 changed files with 117 additions and 99 deletions.
2 changes: 1 addition & 1 deletion heureka/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
testEnvironment: "jsdom",
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],
transformIgnorePatterns: [
"node_modules/(?!(juno-ui-components|url-state-router|communicator|oauth|messages-provider)/)",
"node_modules/(?!(@cloudoperators/juno-ui-components|@cloudoperators/juno-url-state-router|@cloudoperators/juno-url-state-provider-v1|@cloudoperators/juno-communicator|@cloudoperators/juno-messages-provider)/)",
],
moduleNameMapper: {
// Jest currently doesn't support resources with query parameters.
Expand Down
145 changes: 76 additions & 69 deletions heureka/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions heureka/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heureka",
"version": "2.2.1",
"version": "2.2.2",
"author": "UI-Team",
"contributors": [
"Hoda Noori, Arturo Reuschenbach Pucernau"
Expand All @@ -25,16 +25,13 @@
"autoprefixer": "^10.4.2",
"babel-jest": "^29.3.1",
"babel-plugin-transform-import-meta": "^2.2.0",
"communicator": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"esbuild": "^0.19.4",
"graphql": "^16.8.2",
"graphql-request": "^7.0.1",
"immer": "^10.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"juno-ui-components": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"luxon": "^3.0.0",
"messages-provider": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"postcss": "^8.4.21",
"postcss-url": "^10.1.3",
"prop-types": "^15.8.1",
Expand All @@ -45,8 +42,6 @@
"sass": "^1.77.5",
"shadow-dom-testing-library": "^1.7.1",
"tailwindcss": "^3.3.1",
"url-state-provider": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"util": "^0.12.4",
"zustand": "4.5.2"
},
"scripts": {
Expand All @@ -55,12 +50,9 @@
"build": "NODE_ENV=production node esbuild.config.js"
},
"peerDependencies": {
"juno-ui-components": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"messages-provider": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"prop-types": "^15.8.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"url-state-provider": "https://assets.juno.global.cloud.sap/libs/[email protected]/package.tgz",
"zustand": "4.5.2"
},
"importmapExtras": {
Expand All @@ -83,5 +75,11 @@
"description": "Set to true if app is to be embedded in another existing app or page. If set to true the app won't render a page header/footer and instead render only the content. The default value is false."
}
},
"appPreview": true
"appPreview": true,
"dependencies": {
"@cloudoperators/juno-communicator": "^2.2.11",
"@cloudoperators/juno-messages-provider": "^0.1.17",
"@cloudoperators/juno-ui-components": "^2.15.4",
"@cloudoperators/juno-url-state-provider-v1": "^1.3.2"
}
}
8 changes: 6 additions & 2 deletions heureka/ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@

import React, { useEffect } from "react"
import styles from "./styles.scss"
import { AppShell, AppShellProvider, CodeBlock } from "juno-ui-components"
import {
AppShell,
AppShellProvider,
CodeBlock,
} from "@cloudoperators/juno-ui-components"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { MessagesProvider } from "messages-provider"
import { MessagesProvider } from "@cloudoperators/juno-messages-provider"
import AsyncWorker from "./components/AsyncWorker"
import StoreProvider, { useActions } from "./components/StoreProvider"
import TabContext from "./components/tabs/TabContext"
Expand Down
Loading

0 comments on commit 32d4935

Please sign in to comment.