package.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "electron",
  3. "version": "0.0.0-development",
  4. "repository": "https://github.com/electron/electron",
  5. "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
  6. "devDependencies": {
  7. "@azure/storage-blob": "^12.25.0",
  8. "@electron/asar": "^3.2.13",
  9. "@electron/docs-parser": "^1.2.3",
  10. "@electron/fiddle-core": "^1.3.4",
  11. "@electron/github-app-auth": "^2.2.1",
  12. "@electron/lint-roller": "^1.12.1",
  13. "@electron/typescript-definitions": "^8.15.8",
  14. "@octokit/rest": "^20.0.2",
  15. "@primer/octicons": "^10.0.0",
  16. "@types/minimist": "^1.2.5",
  17. "@types/node": "^20.9.0",
  18. "@types/semver": "^7.5.8",
  19. "@types/stream-json": "^1.7.7",
  20. "@types/temp": "^0.9.4",
  21. "@types/webpack": "^5.28.5",
  22. "@types/webpack-env": "^1.18.5",
  23. "@typescript-eslint/eslint-plugin": "^8.7.0",
  24. "@typescript-eslint/parser": "^8.7.0",
  25. "buffer": "^6.0.3",
  26. "chalk": "^4.1.0",
  27. "check-for-leaks": "^1.2.1",
  28. "dotenv-safe": "^4.0.4",
  29. "dugite": "^2.7.1",
  30. "eslint": "^8.57.1",
  31. "eslint-config-standard": "^17.1.0",
  32. "eslint-plugin-import": "^2.30.0",
  33. "eslint-plugin-mocha": "^10.5.0",
  34. "eslint-plugin-n": "^16.6.2",
  35. "eslint-plugin-node": "^11.1.0",
  36. "eslint-plugin-promise": "^6.6.0",
  37. "eslint-plugin-standard": "^5.0.0",
  38. "eslint-plugin-unicorn": "^55.0.0",
  39. "events": "^3.2.0",
  40. "folder-hash": "^2.1.1",
  41. "got": "^11.8.5",
  42. "husky": "^8.0.1",
  43. "lint-staged": "^10.2.11",
  44. "minimist": "^1.2.8",
  45. "null-loader": "^4.0.1",
  46. "pre-flight": "^2.0.0",
  47. "process": "^0.11.10",
  48. "remark-cli": "^10.0.0",
  49. "remark-preset-lint-markdown-style-guide": "^4.0.0",
  50. "semver": "^7.6.3",
  51. "shx": "^0.3.4",
  52. "stream-json": "^1.8.0",
  53. "tap-xunit": "^2.4.1",
  54. "temp": "^0.9.4",
  55. "timers-browserify": "1.4.2",
  56. "ts-loader": "^8.0.2",
  57. "ts-node": "6.2.0",
  58. "typescript": "^5.6.2",
  59. "url": "^0.11.4",
  60. "webpack": "^5.94.0",
  61. "webpack-cli": "^5.1.4",
  62. "wrapper-webpack-plugin": "^2.2.0"
  63. },
  64. "private": true,
  65. "scripts": {
  66. "asar": "asar",
  67. "generate-version-json": "node script/generate-version-json.js",
  68. "lint": "node ./script/lint.js && npm run lint:docs",
  69. "lint:js": "node ./script/lint.js --js",
  70. "lint:clang-format": "python3 script/run-clang-format.py -r -c shell/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  71. "lint:clang-tidy": "ts-node ./script/run-clang-tidy.ts",
  72. "lint:cpp": "node ./script/lint.js --cc",
  73. "lint:objc": "node ./script/lint.js --objc",
  74. "lint:py": "node ./script/lint.js --py",
  75. "lint:gn": "node ./script/lint.js --gn",
  76. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:ts-check-js-in-markdown && npm run lint:docs-fiddles && npm run lint:docs-relative-links && npm run lint:markdown",
  77. "lint:docs-fiddles": "standard \"docs/fiddles/**/*.js\"",
  78. "lint:docs-relative-links": "electron-lint-markdown-links --root docs \"**/*.md\"",
  79. "lint:markdown": "node ./script/lint.js --md",
  80. "lint:ts-check-js-in-markdown": "electron-lint-markdown-ts-check --root docs \"**/*.md\" --ignore \"breaking-changes.md\"",
  81. "lint:js-in-markdown": "electron-lint-markdown-standard --root docs \"**/*.md\"",
  82. "create-api-json": "node script/create-api-json.js",
  83. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
  84. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  85. "pre-flight": "pre-flight",
  86. "gn-check": "node ./script/gn-check.js",
  87. "gn-format": "python3 script/run-gn-format.py",
  88. "precommit": "lint-staged",
  89. "preinstall": "node -e 'process.exit(0)'",
  90. "pretest": "npm run create-typescript-definitions",
  91. "prepack": "check-for-leaks",
  92. "prepare": "husky install",
  93. "repl": "node ./script/start.js --interactive",
  94. "start": "node ./script/start.js",
  95. "test": "node ./script/spec-runner.js",
  96. "tsc": "tsc",
  97. "webpack": "webpack"
  98. },
  99. "license": "MIT",
  100. "author": "Electron Community",
  101. "keywords": [
  102. "electron"
  103. ],
  104. "lint-staged": {
  105. "*.{js,ts}": [
  106. "node script/lint.js --js --fix --only --"
  107. ],
  108. "*.{js,ts,d.ts}": [
  109. "ts-node script/gen-filenames.ts"
  110. ],
  111. "*.{cc,mm,c,h}": [
  112. "python3 script/run-clang-format.py -r -c --fix"
  113. ],
  114. "*.md": [
  115. "npm run lint:docs"
  116. ],
  117. "*.{gn,gni}": [
  118. "npm run gn-check",
  119. "npm run gn-format"
  120. ],
  121. "*.py": [
  122. "node script/lint.js --py --fix --only --"
  123. ],
  124. "docs/api/**/*.md": [
  125. "ts-node script/gen-filenames.ts",
  126. "electron-markdownlint --config .markdownlint.autofix.json --fix",
  127. "git add filenames.auto.gni"
  128. ],
  129. "{*.patch,.patches}": [
  130. "node script/lint.js --patches --only --",
  131. "ts-node script/check-patch-diff.ts"
  132. ],
  133. "DEPS": [
  134. "node script/gen-hunspell-filenames.js",
  135. "node script/gen-libc++-filenames.js"
  136. ]
  137. },
  138. "resolutions": {
  139. "nan": "nodejs/nan#e14bdcd1f72d62bca1d541b66da43130384ec213"
  140. }
  141. }