package.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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.9.0",
  8. "@dsanders11/vscode-markdown-languageservice": "^0.3.0-alpha.4",
  9. "@electron/asar": "^3.2.1",
  10. "@electron/docs-parser": "^1.1.0",
  11. "@electron/fiddle-core": "^1.0.4",
  12. "@electron/github-app-auth": "^1.5.0",
  13. "@electron/typescript-definitions": "^8.14.0",
  14. "@octokit/rest": "^19.0.7",
  15. "@primer/octicons": "^10.0.0",
  16. "@types/basic-auth": "^1.1.3",
  17. "@types/busboy": "^1.5.0",
  18. "@types/chai": "^4.2.12",
  19. "@types/chai-as-promised": "^7.1.3",
  20. "@types/dirty-chai": "^2.0.2",
  21. "@types/express": "^4.17.13",
  22. "@types/fs-extra": "^9.0.1",
  23. "@types/klaw": "^3.0.1",
  24. "@types/minimist": "^1.2.0",
  25. "@types/mocha": "^7.0.2",
  26. "@types/node": "^18.11.18",
  27. "@types/semver": "^7.3.3",
  28. "@types/send": "^0.14.5",
  29. "@types/split": "^1.0.0",
  30. "@types/stream-json": "^1.5.1",
  31. "@types/temp": "^0.8.34",
  32. "@types/uuid": "^3.4.6",
  33. "@types/webpack": "^5.28.0",
  34. "@types/webpack-env": "^1.17.0",
  35. "@typescript-eslint/eslint-plugin": "^4.4.1",
  36. "@typescript-eslint/parser": "^4.4.1",
  37. "buffer": "^6.0.3",
  38. "check-for-leaks": "^1.2.1",
  39. "colors": "1.4.0",
  40. "dotenv-safe": "^4.0.4",
  41. "dugite": "^2.3.0",
  42. "eslint": "^7.4.0",
  43. "eslint-config-standard": "^14.1.1",
  44. "eslint-plugin-import": "^2.22.0",
  45. "eslint-plugin-mocha": "^7.0.1",
  46. "eslint-plugin-node": "^11.1.0",
  47. "eslint-plugin-standard": "^4.0.1",
  48. "eslint-plugin-typescript": "^0.14.0",
  49. "events": "^3.2.0",
  50. "express": "^4.16.4",
  51. "folder-hash": "^2.1.1",
  52. "fs-extra": "^9.0.1",
  53. "got": "^11.8.5",
  54. "husky": "^8.0.1",
  55. "klaw": "^3.0.0",
  56. "lint": "^1.1.2",
  57. "lint-staged": "^10.2.11",
  58. "markdownlint-cli": "^0.33.0",
  59. "mdast-util-from-markdown": "^1.2.0",
  60. "minimist": "^1.2.6",
  61. "null-loader": "^4.0.0",
  62. "pre-flight": "^1.1.0",
  63. "process": "^0.11.10",
  64. "remark-cli": "^10.0.0",
  65. "remark-preset-lint-markdown-style-guide": "^4.0.0",
  66. "semver": "^5.6.0",
  67. "shx": "^0.3.2",
  68. "standard-markdown": "^6.0.0",
  69. "stream-json": "^1.7.1",
  70. "tap-xunit": "^2.4.1",
  71. "temp": "^0.8.3",
  72. "timers-browserify": "1.4.2",
  73. "ts-loader": "^8.0.2",
  74. "ts-node": "6.2.0",
  75. "typescript": "^4.5.5",
  76. "unist-util-visit": "^4.1.1",
  77. "url": "^0.11.0",
  78. "vscode-languageserver": "^8.0.2",
  79. "vscode-languageserver-textdocument": "^1.0.7",
  80. "vscode-uri": "^3.0.6",
  81. "webpack": "^5.76.0",
  82. "webpack-cli": "^4.10.0",
  83. "wrapper-webpack-plugin": "^2.2.0"
  84. },
  85. "private": true,
  86. "scripts": {
  87. "asar": "asar",
  88. "generate-version-json": "node script/generate-version-json.js",
  89. "lint": "node ./script/lint.js && npm run lint:docs",
  90. "lint:js": "node ./script/lint.js --js",
  91. "lint:clang-format": "python3 script/run-clang-format.py -r -c shell/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  92. "lint:clang-tidy": "ts-node ./script/run-clang-tidy.ts",
  93. "lint:cpp": "node ./script/lint.js --cc",
  94. "lint:objc": "node ./script/lint.js --objc",
  95. "lint:py": "node ./script/lint.js --py",
  96. "lint:gn": "node ./script/lint.js --gn",
  97. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:docs-fiddles && npm run lint:docs-relative-links && npm run lint:markdownlint",
  98. "lint:docs-fiddles": "standard \"docs/fiddles/**/*.js\"",
  99. "lint:docs-relative-links": "ts-node script/lint-docs-links.ts",
  100. "lint:markdownlint": "markdownlint -r ./script/markdownlint-emd001.js \"*.md\" \"docs/**/*.md\"",
  101. "lint:js-in-markdown": "standard-markdown docs",
  102. "create-api-json": "node script/create-api-json.js",
  103. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
  104. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  105. "pre-flight": "pre-flight",
  106. "gn-check": "node ./script/gn-check.js",
  107. "gn-format": "python3 script/run-gn-format.py",
  108. "precommit": "lint-staged",
  109. "preinstall": "node -e 'process.exit(0)'",
  110. "prepack": "check-for-leaks",
  111. "prepare": "husky install",
  112. "repl": "node ./script/start.js --interactive",
  113. "start": "node ./script/start.js",
  114. "test": "node ./script/spec-runner.js",
  115. "tsc": "tsc",
  116. "webpack": "webpack"
  117. },
  118. "license": "MIT",
  119. "author": "Electron Community",
  120. "keywords": [
  121. "electron"
  122. ],
  123. "lint-staged": {
  124. "*.{js,ts}": [
  125. "node script/lint.js --js --fix --only --"
  126. ],
  127. "*.{js,ts,d.ts}": [
  128. "ts-node script/gen-filenames.ts"
  129. ],
  130. "*.{cc,mm,c,h}": [
  131. "python3 script/run-clang-format.py -r -c --fix"
  132. ],
  133. "*.md": [
  134. "npm run lint:docs"
  135. ],
  136. "*.{gn,gni}": [
  137. "npm run gn-check",
  138. "npm run gn-format"
  139. ],
  140. "*.py": [
  141. "node script/lint.js --py --fix --only --"
  142. ],
  143. "docs/api/**/*.md": [
  144. "ts-node script/gen-filenames.ts",
  145. "markdownlint --config .markdownlint.autofix.json --fix",
  146. "git add filenames.auto.gni"
  147. ],
  148. "{*.patch,.patches}": [
  149. "node script/lint.js --patches --only --",
  150. "ts-node script/check-patch-diff.ts"
  151. ],
  152. "DEPS": [
  153. "node script/gen-hunspell-filenames.js",
  154. "node script/gen-libc++-filenames.js"
  155. ]
  156. },
  157. "resolutions": {
  158. "nan": "nodejs/nan#16fa32231e2ccd89d2804b3f765319128b20c4ac"
  159. }
  160. }