package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "console-plugin-template",
  3. "version": "0.0.1",
  4. "description": "Template project for OpenShift Console plugins",
  5. "private": true,
  6. "license": "Apache-2.0",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/openshift/console-plugin-template.git"
  10. },
  11. "scripts": {
  12. "clean": "rm -rf dist",
  13. "build": "yarn clean && NODE_ENV=production yarn webpack",
  14. "build-dev": "yarn clean && yarn webpack",
  15. "coverage": "jest --coverage",
  16. "start": "yarn webpack serve --progress",
  17. "start-console": "./start-console.sh",
  18. "i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
  19. "test": "LANG=en_US.UTF-8 jest",
  20. "lint": "yarn eslint src integration-tests --fix --max-warnings 0 && stylelint 'src/**/*.css' --allow-empty-input --fix",
  21. "test-e2e": "playwright test --headed",
  22. "test-e2e-headless": "playwright test",
  23. "webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
  24. },
  25. "devDependencies": {
  26. "@babel/core": "^7.29.7",
  27. "@babel/preset-env": "^7.29.7",
  28. "@openshift-console/dynamic-plugin-sdk": "4.22-latest",
  29. "@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
  30. "@patternfly/react-core": "^6.4.3",
  31. "@patternfly/react-icons": "^6.4.0",
  32. "@patternfly/react-table": "^6.4.3",
  33. "@playwright/browser-chromium": "^1.60.0",
  34. "@playwright/test": "^1.60.0",
  35. "@swc/core": "^1.15.40",
  36. "@swc/jest": "^0.2.39",
  37. "@testing-library/dom": "^10.4.1",
  38. "@testing-library/jest-dom": "^6.9.1",
  39. "@testing-library/react": "^16.3.2",
  40. "@testing-library/user-event": "^14.6.1",
  41. "@types/jest": "^30.0.0",
  42. "@types/node": "^22.0.0",
  43. "@types/react": "^18.3.28",
  44. "babel-loader": "^10.1.1",
  45. "copy-webpack-plugin": "^14.0.0",
  46. "css-loader": "^7.1.4",
  47. "eslint": "^9.7.0",
  48. "eslint-config-prettier": "^10.1.8",
  49. "eslint-import-resolver-typescript": "^4.4.5",
  50. "eslint-plugin-import-x": "^4.16.2",
  51. "eslint-plugin-jest": "^29.15.2",
  52. "eslint-plugin-playwright": "^2.10.4",
  53. "eslint-plugin-prettier": "^5.5.6",
  54. "eslint-plugin-react": "^7.37.5",
  55. "eslint-plugin-react-hooks": "^7.1.1",
  56. "eslint-plugin-testing-library": "^7.16.2",
  57. "fork-ts-checker-webpack-plugin": "^9.1.0",
  58. "globals": "^17.6.0",
  59. "i18next": "^25.8.18",
  60. "i18next-parser": "^9.4.0",
  61. "jest": "^30.4.2",
  62. "jest-environment-jsdom": "^30.4.1",
  63. "jest-junit": "^17.0.0",
  64. "pluralize": "^8.0.0",
  65. "prettier": "^3.8.3",
  66. "prettier-stylelint": "^0.4.2",
  67. "react": "^18.3.1",
  68. "react-dom": "^18.3.1",
  69. "react-i18next": "~16.5.8",
  70. "react-router": "~7.13.1",
  71. "style-loader": "^4.0.0",
  72. "stylelint": "^17.13.0",
  73. "stylelint-config-standard": "^40.0.0",
  74. "swc-loader": "^0.2.7",
  75. "ts-node": "^10.9.2",
  76. "typescript": "^5.9.3",
  77. "typescript-eslint": "^8.61.0",
  78. "webpack": "^5.107.2",
  79. "webpack-cli": "^7.0.3",
  80. "webpack-dev-server": "^5.2.4"
  81. },
  82. "dependenciesMeta": {
  83. "@playwright/browser-chromium": {
  84. "built": true
  85. }
  86. },
  87. "consolePlugin": {
  88. "name": "homelab-dashboard",
  89. "version": "0.0.1",
  90. "displayName": "Homelab Dashboard",
  91. "description": "Custom administration dashboard for the homelab OpenShift cluster",
  92. "exposedModules": {
  93. "DashboardPage": "./components/DashboardPage"
  94. },
  95. "dependencies": {
  96. "@console/pluginAPI": ">=4.22.0-0"
  97. }
  98. }
  99. }