package.json 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. "start": "yarn webpack serve --progress",
  16. "start-console": "./start-console.sh",
  17. "i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
  18. "lint": "yarn eslint src integration-tests --fix && stylelint 'src/**/*.css' --allow-empty-input --fix",
  19. "test-cypress": "cd integration-tests && cypress open",
  20. "test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --browser ${BRIDGE_E2E_BROWSER_NAME:-electron}",
  21. "cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
  22. "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",
  23. "cypress-postreport": "yarn cypress-merge && yarn cypress-generate",
  24. "webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
  25. },
  26. "devDependencies": {
  27. "@babel/core": "^7.29.0",
  28. "@babel/preset-env": "^7.29.3",
  29. "@cypress/webpack-preprocessor": "^7.1.0",
  30. "@openshift-console/dynamic-plugin-sdk": "4.22-latest",
  31. "@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
  32. "@patternfly/react-core": "^6.4.3",
  33. "@patternfly/react-icons": "^6.4.0",
  34. "@patternfly/react-table": "^6.4.3",
  35. "@types/node": "^22.0.0",
  36. "@types/react": "^18.3.28",
  37. "babel-loader": "^10.1.1",
  38. "copy-webpack-plugin": "^14.0.0",
  39. "css-loader": "^7.1.4",
  40. "cypress": "^15.14.2",
  41. "cypress-multi-reporters": "^2.0.5",
  42. "eslint": "^9.7.0",
  43. "eslint-config-prettier": "^10.1.8",
  44. "eslint-plugin-cypress": "^6.4.0",
  45. "eslint-plugin-prettier": "^5.5.5",
  46. "eslint-plugin-react": "^7.37.5",
  47. "eslint-plugin-react-hooks": "^7.1.1",
  48. "globals": "^17.6.0",
  49. "i18next": "^25.8.18",
  50. "i18next-parser": "^9.4.0",
  51. "mocha": "^11.7.5",
  52. "mocha-junit-reporter": "^2.2.1",
  53. "mochawesome": "^7.1.4",
  54. "mochawesome-merge": "^5.1.1",
  55. "pluralize": "^8.0.0",
  56. "prettier": "^3.8.3",
  57. "prettier-stylelint": "^0.4.2",
  58. "react": "^18.3.1",
  59. "react-dom": "^18.3.1",
  60. "react-i18next": "~16.5.8",
  61. "react-router": "~7.13.1",
  62. "style-loader": "^4.0.0",
  63. "stylelint": "^17.9.1",
  64. "stylelint-config-standard": "^40.0.0",
  65. "ts-loader": "^9.5.7",
  66. "ts-node": "^10.9.2",
  67. "typescript": "^5.9.3",
  68. "typescript-eslint": "^8.59.1",
  69. "webpack": "^5.106.2",
  70. "webpack-cli": "^7.0.2",
  71. "webpack-dev-server": "^5.2.3"
  72. },
  73. "dependenciesMeta": {
  74. "cypress": {
  75. "built": true
  76. }
  77. },
  78. "consolePlugin": {
  79. "name": "console-plugin-template",
  80. "version": "0.0.1",
  81. "displayName": "OpenShift Console Plugin Template",
  82. "description": "Template project for OpenShift Console plugins. Edit package.json to change this message and the plugin name.",
  83. "exposedModules": {
  84. "ExamplePage": "./components/ExamplePage"
  85. },
  86. "dependencies": {
  87. "@console/pluginAPI": ">=4.22.0-0"
  88. }
  89. },
  90. "packageManager": "yarn@4.14.1"
  91. }