package.json 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.0",
  29. "@cypress/webpack-preprocessor": "^7.0.2",
  30. "@openshift-console/dynamic-plugin-sdk": "4.21-latest",
  31. "@openshift-console/dynamic-plugin-sdk-webpack": "4.21-latest",
  32. "@patternfly/react-core": "^6.2.2",
  33. "@patternfly/react-icons": "^6.2.2",
  34. "@patternfly/react-table": "^6.2.2",
  35. "@types/node": "^22.0.0",
  36. "@types/react": "^17.0.37",
  37. "@types/react-router-dom": "^5.3.3",
  38. "babel-loader": "^10.1.0",
  39. "copy-webpack-plugin": "^14.0.0",
  40. "css-loader": "^7.1.4",
  41. "cypress": "^15.11.0",
  42. "cypress-multi-reporters": "^2.0.5",
  43. "eslint": "^9.7.0",
  44. "eslint-config-prettier": "^10.1.8",
  45. "eslint-plugin-cypress": "^6.1.0",
  46. "eslint-plugin-prettier": "^5.5.5",
  47. "eslint-plugin-react": "^7.37.5",
  48. "eslint-plugin-react-hooks": "^7.0.1",
  49. "globals": "^17.4.0",
  50. "i18next": "^23.11.5",
  51. "i18next-parser": "^9.4.0",
  52. "mocha": "^11.7.5",
  53. "mocha-junit-reporter": "^2.2.1",
  54. "mochawesome": "^7.1.4",
  55. "mochawesome-merge": "^5.1.1",
  56. "pluralize": "^8.0.0",
  57. "prettier": "^3.8.1",
  58. "prettier-stylelint": "^0.4.2",
  59. "react": "^17.0.1",
  60. "react-dom": "^17.0.1",
  61. "react-i18next": "^11.7.3",
  62. "react-router": "5.3.x",
  63. "react-router-dom": "5.3.x",
  64. "react-router-dom-v5-compat": "^6.11.2",
  65. "style-loader": "^4.0.0",
  66. "stylelint": "^17.4.0",
  67. "stylelint-config-standard": "^40.0.0",
  68. "ts-loader": "^9.5.4",
  69. "ts-node": "^10.9.2",
  70. "typescript": "^5.9.3",
  71. "typescript-eslint": "^8.56.1",
  72. "webpack": "^5.100.0",
  73. "webpack-cli": "^6.0.1",
  74. "webpack-dev-server": "^5.2.3"
  75. },
  76. "consolePlugin": {
  77. "name": "console-plugin-template",
  78. "version": "0.0.1",
  79. "displayName": "OpenShift Console Plugin Template",
  80. "description": "Template project for OpenShift Console plugins. Edit package.json to change this message and the plugin name.",
  81. "exposedModules": {
  82. "ExamplePage": "./components/ExamplePage"
  83. },
  84. "dependencies": {
  85. "@console/pluginAPI": "^4.21.0"
  86. }
  87. },
  88. "packageManager": "yarn@4.13.0"
  89. }