package.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "name": "electron",
  3. "version": "14.0.0-nightly.20210428",
  4. "repository": "https://github.com/electron/electron",
  5. "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
  6. "devDependencies": {
  7. "@electron/docs-parser": "^0.11.0",
  8. "@electron/typescript-definitions": "^8.9.0",
  9. "@octokit/auth-app": "^2.10.0",
  10. "@octokit/rest": "^18.0.3",
  11. "@primer/octicons": "^10.0.0",
  12. "@types/basic-auth": "^1.1.3",
  13. "@types/busboy": "^0.2.3",
  14. "@types/chai": "^4.2.12",
  15. "@types/chai-as-promised": "^7.1.3",
  16. "@types/dirty-chai": "^2.0.2",
  17. "@types/express": "^4.17.7",
  18. "@types/fs-extra": "^9.0.1",
  19. "@types/klaw": "^3.0.1",
  20. "@types/minimist": "^1.2.0",
  21. "@types/mocha": "^7.0.2",
  22. "@types/node": "^14.6.2",
  23. "@types/semver": "^7.3.3",
  24. "@types/send": "^0.14.5",
  25. "@types/split": "^1.0.0",
  26. "@types/stream-json": "^1.5.1",
  27. "@types/temp": "^0.8.34",
  28. "@types/uuid": "^3.4.6",
  29. "@types/webpack": "^4.41.21",
  30. "@types/webpack-env": "^1.15.2",
  31. "@typescript-eslint/eslint-plugin": "^4.4.1",
  32. "@typescript-eslint/parser": "^4.4.1",
  33. "asar": "^3.0.3",
  34. "aws-sdk": "^2.727.1",
  35. "check-for-leaks": "^1.2.1",
  36. "colors": "^1.4.0",
  37. "dotenv-safe": "^4.0.4",
  38. "dugite": "^1.45.0",
  39. "eslint": "^7.4.0",
  40. "eslint-config-standard": "^14.1.1",
  41. "eslint-plugin-import": "^2.22.0",
  42. "eslint-plugin-mocha": "^7.0.1",
  43. "eslint-plugin-node": "^11.1.0",
  44. "eslint-plugin-standard": "^4.0.1",
  45. "eslint-plugin-typescript": "^0.14.0",
  46. "express": "^4.16.4",
  47. "folder-hash": "^2.1.1",
  48. "fs-extra": "^9.0.1",
  49. "got": "^6.3.0",
  50. "husky": "^6.0.0",
  51. "klaw": "^3.0.0",
  52. "lint": "^1.1.2",
  53. "lint-staged": "^10.2.11",
  54. "markdownlint": "^0.21.1",
  55. "markdownlint-cli": "^0.25.0",
  56. "minimist": "^1.2.5",
  57. "nugget": "^2.0.1",
  58. "null-loader": "^4.0.0",
  59. "pre-flight": "^1.1.0",
  60. "remark-cli": "^4.0.0",
  61. "remark-preset-lint-markdown-style-guide": "^2.1.1",
  62. "request": "^2.88.2",
  63. "semver": "^5.6.0",
  64. "shx": "^0.3.2",
  65. "standard-markdown": "^6.0.0",
  66. "stream-json": "^1.7.1",
  67. "sumchecker": "^2.0.2",
  68. "tap-xunit": "^2.4.1",
  69. "temp": "^0.8.3",
  70. "timers-browserify": "1.4.2",
  71. "ts-loader": "^8.0.2",
  72. "ts-node": "6.2.0",
  73. "typescript": "^4.1.3",
  74. "webpack": "^4.43.0",
  75. "webpack-cli": "^3.3.12",
  76. "wrapper-webpack-plugin": "^2.1.0"
  77. },
  78. "private": true,
  79. "scripts": {
  80. "asar": "asar",
  81. "generate-version-json": "node script/generate-version-json.js",
  82. "lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
  83. "lint:js": "node ./script/lint.js --js",
  84. "lint:clang-format": "python script/run-clang-format.py -r -c chromium_src/ shell/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  85. "lint:clang-tidy": "ts-node ./script/run-clang-tidy.ts",
  86. "lint:cpp": "node ./script/lint.js --cc",
  87. "lint:objc": "node ./script/lint.js --objc",
  88. "lint:py": "node ./script/lint.js --py",
  89. "lint:gn": "node ./script/lint.js --gn",
  90. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:docs-relative-links && npm run lint:markdownlint",
  91. "lint:docs-relative-links": "python ./script/check-relative-doc-links.py",
  92. "lint:markdownlint": "markdownlint \"*.md\" \"docs/**/*.md\"",
  93. "lint:js-in-markdown": "standard-markdown docs",
  94. "create-api-json": "electron-docs-parser --dir=./",
  95. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
  96. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  97. "pre-flight": "pre-flight",
  98. "gn-check": "node ./script/gn-check.js",
  99. "precommit": "lint-staged",
  100. "preinstall": "node -e 'process.exit(0)'",
  101. "prepack": "check-for-leaks",
  102. "prepare": "husky install",
  103. "repl": "node ./script/start.js --interactive",
  104. "start": "node ./script/start.js",
  105. "test": "node ./script/spec-runner.js",
  106. "tsc": "tsc",
  107. "webpack": "webpack"
  108. },
  109. "license": "MIT",
  110. "author": "Electron Community",
  111. "keywords": [
  112. "electron"
  113. ],
  114. "lint-staged": {
  115. "*.{js,ts}": [
  116. "node script/lint.js --js --fix --only --"
  117. ],
  118. "*.{js,ts,d.ts}": [
  119. "ts-node script/gen-filenames.ts"
  120. ],
  121. "*.{cc,mm,c,h}": [
  122. "python script/run-clang-format.py -r -c --fix"
  123. ],
  124. "*.md": [
  125. "npm run lint:docs"
  126. ],
  127. "*.{gn,gni}": [
  128. "npm run gn-check",
  129. "python script/run-gn-format.py"
  130. ],
  131. "*.py": [
  132. "node script/lint.js --py --fix --only --"
  133. ],
  134. "docs/api/**/*.md": [
  135. "ts-node script/gen-filenames.ts",
  136. "markdownlint --config .markdownlint.autofix.json --fix",
  137. "git add filenames.auto.gni"
  138. ],
  139. "{*.patch,.patches}": [
  140. "node script/lint.js --patches --only --",
  141. "ts-node script/check-patch-diff.ts"
  142. ],
  143. "DEPS": [
  144. "node script/gen-hunspell-filenames.js"
  145. ]
  146. }
  147. }