package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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-cypress": "cd integration-tests && cypress open",
  22. "test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --browser ${BRIDGE_E2E_BROWSER_NAME:-electron}",
  23. "cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
  24. "cypress-generate": "marge -o ./integration-tests/screenshots/ -f cypress-report -t 'OpenShift Console Plugin Template Cypress Test Results' -p 'OpenShift Cypress Plugin Template Test Results' --showPassed false --assetsDir ./integration-tests/screenshots/cypress/assets ./integration-tests/screenshots/cypress.json",
  25. "cypress-postreport": "yarn cypress-merge && yarn cypress-generate",
  26. "webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
  27. },
  28. "devDependencies": {
  29. "@babel/core": "^7.29.0",
  30. "@babel/preset-env": "^7.29.3",
  31. "@cypress/webpack-preprocessor": "^7.1.0",
  32. "@openshift-console/dynamic-plugin-sdk": "4.22-latest",
  33. "@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
  34. "@patternfly/react-core": "^6.4.3",
  35. "@patternfly/react-icons": "^6.4.0",
  36. "@patternfly/react-table": "^6.4.3",
  37. "@swc/core": "^1.15.32",
  38. "@swc/jest": "^0.2.39",
  39. "@testing-library/dom": "^10.4.1",
  40. "@testing-library/jest-dom": "^6.9.1",
  41. "@testing-library/react": "^16.3.2",
  42. "@testing-library/user-event": "^14.6.1",
  43. "@types/jest": "^30.0.0",
  44. "@types/node": "^22.0.0",
  45. "@types/react": "^18.3.28",
  46. "babel-loader": "^10.1.1",
  47. "copy-webpack-plugin": "^14.0.0",
  48. "css-loader": "^7.1.4",
  49. "cypress": "^15.14.2",
  50. "cypress-multi-reporters": "^2.0.5",
  51. "eslint": "^9.7.0",
  52. "eslint-config-prettier": "^10.1.8",
  53. "eslint-import-resolver-typescript": "^4.4.4",
  54. "eslint-plugin-cypress": "^6.4.0",
  55. "eslint-plugin-import-x": "^4.16.2",
  56. "eslint-plugin-jest": "^29.15.2",
  57. "eslint-plugin-prettier": "^5.5.5",
  58. "eslint-plugin-react": "^7.37.5",
  59. "eslint-plugin-react-hooks": "^7.1.1",
  60. "eslint-plugin-testing-library": "^7.16.2",
  61. "fork-ts-checker-webpack-plugin": "^9.1.0",
  62. "globals": "^17.6.0",
  63. "i18next": "^25.8.18",
  64. "i18next-parser": "^9.4.0",
  65. "jest": "^30.3.0",
  66. "jest-environment-jsdom": "^30.3.0",
  67. "jest-junit": "^17.0.0",
  68. "mocha": "^11.7.5",
  69. "mocha-junit-reporter": "^2.2.1",
  70. "mochawesome": "^7.1.4",
  71. "mochawesome-merge": "^5.1.1",
  72. "pluralize": "^8.0.0",
  73. "prettier": "^3.8.3",
  74. "prettier-stylelint": "^0.4.2",
  75. "react": "^18.3.1",
  76. "react-dom": "^18.3.1",
  77. "react-i18next": "~16.5.8",
  78. "react-router": "~7.13.1",
  79. "style-loader": "^4.0.0",
  80. "stylelint": "^17.9.1",
  81. "stylelint-config-standard": "^40.0.0",
  82. "swc-loader": "^0.2.7",
  83. "ts-node": "^10.9.2",
  84. "typescript": "^5.9.3",
  85. "typescript-eslint": "^8.59.1",
  86. "webpack": "^5.106.2",
  87. "webpack-cli": "^7.0.2",
  88. "webpack-dev-server": "^5.2.3"
  89. },
  90. "dependenciesMeta": {
  91. "cypress": {
  92. "built": true
  93. }
  94. },
  95. "consolePlugin": {
  96. "name": "console-plugin-template",
  97. "version": "0.0.1",
  98. "displayName": "OpenShift Console Plugin Template",
  99. "description": "Template project for OpenShift Console plugins. Edit package.json to change this message and the plugin name.",
  100. "exposedModules": {
  101. "ExamplePage": "./components/ExamplePage"
  102. },
  103. "dependencies": {
  104. "@console/pluginAPI": ">=4.22.0-0"
  105. }
  106. },
  107. "packageManager": "yarn@4.14.1"
  108. }