package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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": "^2.0.0",
  10. "@electron/fiddle-core": "^1.3.4",
  11. "@electron/github-app-auth": "^2.2.1",
  12. "@electron/lint-roller": "^2.4.0",
  13. "@electron/typescript-definitions": "^9.0.0",
  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. "dugite": "^2.7.1",
  29. "eslint": "^8.57.1",
  30. "eslint-config-standard": "^17.1.0",
  31. "eslint-plugin-import": "^2.30.0",
  32. "eslint-plugin-mocha": "^10.5.0",
  33. "eslint-plugin-n": "^16.6.2",
  34. "eslint-plugin-node": "^11.1.0",
  35. "eslint-plugin-promise": "^6.6.0",
  36. "eslint-plugin-standard": "^5.0.0",
  37. "eslint-plugin-unicorn": "^55.0.0",
  38. "events": "^3.2.0",
  39. "folder-hash": "^2.1.1",
  40. "got": "^11.8.5",
  41. "husky": "^8.0.1",
  42. "lint-staged": "^10.2.11",
  43. "markdownlint-cli2": "^0.13.0",
  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 && npm run lint:api-history",
  77. "lint:docs-fiddles": "standard \"docs/fiddles/**/*.js\"",
  78. "lint:docs-relative-links": "lint-roller-markdown-links --root docs \"**/*.md\"",
  79. "lint:markdown": "node ./script/lint.js --md",
  80. "lint:ts-check-js-in-markdown": "lint-roller-markdown-ts-check --root docs \"**/*.md\" --ignore \"breaking-changes.md\"",
  81. "lint:js-in-markdown": "lint-roller-markdown-standard --root docs \"**/*.md\"",
  82. "lint:api-history": "lint-roller-markdown-api-history --root \"./docs/api/\" --schema \"./docs/api-history.schema.json\" --breaking-changes-file \"./docs/breaking-changes.md\" --check-placement --check-strings \"*.md\"",
  83. "create-api-json": "node script/create-api-json.mjs",
  84. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
  85. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  86. "pre-flight": "pre-flight",
  87. "gn-check": "node ./script/gn-check.js",
  88. "gn-format": "python3 script/run-gn-format.py",
  89. "precommit": "lint-staged",
  90. "preinstall": "node -e 'process.exit(0)'",
  91. "pretest": "npm run create-typescript-definitions",
  92. "prepack": "check-for-leaks",
  93. "prepare": "husky install",
  94. "repl": "node ./script/start.js --interactive",
  95. "start": "node ./script/start.js",
  96. "test": "node ./script/spec-runner.js",
  97. "tsc": "tsc",
  98. "webpack": "webpack"
  99. },
  100. "license": "MIT",
  101. "author": "Electron Community",
  102. "keywords": [
  103. "electron"
  104. ],
  105. "lint-staged": {
  106. "*.{js,ts}": [
  107. "node script/lint.js --js --fix --only --"
  108. ],
  109. "*.{js,ts,d.ts}": [
  110. "ts-node script/gen-filenames.ts"
  111. ],
  112. "*.{cc,mm,c,h}": [
  113. "python3 script/run-clang-format.py -r -c --fix"
  114. ],
  115. "*.md": [
  116. "npm run lint:docs"
  117. ],
  118. "*.{gn,gni}": [
  119. "npm run gn-check",
  120. "npm run gn-format"
  121. ],
  122. "*.py": [
  123. "node script/lint.js --py --fix --only --"
  124. ],
  125. "docs/api/**/*.md": [
  126. "ts-node script/gen-filenames.ts",
  127. "markdownlint-cli2 --config .autofix.markdownlint-cli2.jsonc --fix",
  128. "git add filenames.auto.gni"
  129. ],
  130. "{*.patch,.patches}": [
  131. "node script/lint.js --patches --only --",
  132. "ts-node script/check-patch-diff.ts"
  133. ],
  134. "DEPS": [
  135. "node script/gen-hunspell-filenames.js",
  136. "node script/gen-libc++-filenames.js"
  137. ]
  138. },
  139. "resolutions": {
  140. "nan": "nodejs/nan#e14bdcd1f72d62bca1d541b66da43130384ec213"
  141. }
  142. }