package.json 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "console-plugin-template",
  3. "version": "0.0.1",
  4. "private": true,
  5. "repository": "git@github.com:spadgett/console-plugin-template.git",
  6. "license": "Apache-2.0",
  7. "scripts": {
  8. "clean": "rm -rf dist",
  9. "build": "yarn clean && NODE_ENV=production yarn ts-node node_modules/.bin/webpack",
  10. "build-dev": "yarn clean && yarn ts-node node_modules/.bin/webpack",
  11. "start": "yarn ts-node node_modules/.bin/webpack serve",
  12. "start-console": "./start-console.sh",
  13. "i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
  14. "ts-node": "ts-node -O '{\"module\":\"commonjs\"}'",
  15. "lint": "eslint ./src ./integration-tests --fix && stylelint \"src/**/*.css\" --allow-empty-input --fix",
  16. "test-cypress": "cd integration-tests s && cypress open --env openshift=true",
  17. "test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --env openshift=true --browser ${BRIDGE_E2E_BROWSER_NAME:=chrome}",
  18. "cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
  19. "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",
  20. "cypress-postreport": "yarn cypress-merge && yarn cypress-generate"
  21. },
  22. "devDependencies": {
  23. "@cypress/webpack-preprocessor": "^5.15.5",
  24. "@openshift-console/dynamic-plugin-sdk": "0.0.12",
  25. "@openshift-console/dynamic-plugin-sdk-webpack": "0.0.7",
  26. "@patternfly/react-core": "4.221.3",
  27. "@types/node": "^18.0.0",
  28. "@types/react": "^17.0.37",
  29. "@types/react-helmet": "^6.1.4",
  30. "@types/react-router-dom": "^5.3.2",
  31. "@typescript-eslint/eslint-plugin": "^5.14.0",
  32. "@typescript-eslint/parser": "^5.14.0",
  33. "css-loader": "^6.7.1",
  34. "cypress": "^11.0.1",
  35. "cypress-multi-reporters": "^1.6.2",
  36. "eslint": "^8.10.0",
  37. "eslint-config-prettier": "^8.5.0",
  38. "eslint-plugin-cypress": "^2.12.1",
  39. "eslint-plugin-prettier": "^4.0.0",
  40. "eslint-plugin-react": "^7.29.1",
  41. "i18next-parser": "^3.11.0",
  42. "mocha-junit-reporter": "^2.2.0",
  43. "mochawesome": "^7.1.3",
  44. "mochawesome-merge": "^4.3.0",
  45. "pluralize": "^8.0.0",
  46. "prettier": "^2.7.1",
  47. "prettier-stylelint": "^0.4.2",
  48. "react": "^17.0.1",
  49. "react-dom": "^17.0.1",
  50. "react-helmet": "^6.1.0",
  51. "react-i18next": "^13.0.0",
  52. "react-router": "5.2.0",
  53. "react-router-dom": "5.2.0",
  54. "style-loader": "^3.3.1",
  55. "stylelint": "^15.3.0",
  56. "stylelint-config-standard": "^31.0.0",
  57. "ts-loader": "^9.3.1",
  58. "ts-node": "^10.8.1",
  59. "typescript": "^4.7.4",
  60. "webpack": "^5.68.0",
  61. "webpack-cli": "^4.9.2",
  62. "webpack-dev-server": "^4.7.4"
  63. },
  64. "consolePlugin": {
  65. "name": "console-plugin-template",
  66. "version": "0.0.1",
  67. "displayName": "OpenShift Console Plugin Template",
  68. "description": "Template project for OpenShift console plugins. Edit package.json to change this message and the plugin name.",
  69. "exposedModules": {
  70. "ExamplePage": "./components/ExamplePage"
  71. },
  72. "dependencies": {
  73. "@console/pluginAPI": "*"
  74. }
  75. }
  76. }