package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. {
  2. "name": "electron",
  3. "version": "10.1.5",
  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.10.0",
  8. "@electron/typescript-definitions": "^8.7.2",
  9. "@octokit/rest": "^16.3.2",
  10. "@primer/octicons": "^9.1.1",
  11. "@types/basic-auth": "^1.1.3",
  12. "@types/busboy": "^0.2.3",
  13. "@types/chai": "^4.2.11",
  14. "@types/chai-as-promised": "^7.1.2",
  15. "@types/dirty-chai": "^2.0.2",
  16. "@types/express": "^4.17.3",
  17. "@types/fs-extra": "^8.1.0",
  18. "@types/mocha": "^7.0.2",
  19. "@types/node": "^12.12.6",
  20. "@types/semver": "^7.1.0",
  21. "@types/send": "^0.14.5",
  22. "@types/split": "^1.0.0",
  23. "@types/uuid": "^3.4.6",
  24. "@types/webpack": "^4.41.7",
  25. "@types/webpack-env": "^1.15.1",
  26. "@typescript-eslint/eslint-plugin": "^2.24.0",
  27. "@typescript-eslint/parser": "^2.24.0",
  28. "asar": "^3.0.1",
  29. "check-for-leaks": "^1.2.1",
  30. "colors": "^1.1.2",
  31. "dotenv-safe": "^4.0.4",
  32. "dugite": "^1.45.0",
  33. "eslint": "^5.13.0",
  34. "eslint-config-standard": "^12.0.0",
  35. "eslint-plugin-import": "^2.17.2",
  36. "eslint-plugin-mocha": "^5.2.0",
  37. "eslint-plugin-node": "^8.0.1",
  38. "eslint-plugin-standard": "^4.0.0",
  39. "eslint-plugin-typescript": "^0.14.0",
  40. "express": "^4.16.4",
  41. "folder-hash": "^2.1.1",
  42. "fs-extra": "^7.0.1",
  43. "husky": "^2.2.0",
  44. "klaw": "^3.0.0",
  45. "lint": "^1.1.2",
  46. "lint-staged": "^8.1.0",
  47. "minimist": "^1.2.0",
  48. "nugget": "^2.0.1",
  49. "null-loader": "^4.0.0",
  50. "pre-flight": "^1.1.0",
  51. "remark-cli": "^4.0.0",
  52. "remark-preset-lint-markdown-style-guide": "^2.1.1",
  53. "request": "^2.88.0",
  54. "semver": "^5.6.0",
  55. "shx": "^0.3.2",
  56. "standard-markdown": "^5.0.0",
  57. "sumchecker": "^2.0.2",
  58. "tap-xunit": "^2.4.1",
  59. "temp": "^0.8.3",
  60. "timers-browserify": "1.4.2",
  61. "ts-loader": "^6.0.2",
  62. "ts-node": "^6.0.3",
  63. "typescript": "^3.8.3",
  64. "webpack": "^4.42.0",
  65. "webpack-cli": "^3.3.11"
  66. },
  67. "private": true,
  68. "scripts": {
  69. "asar": "asar",
  70. "generate-version-json": "node script/generate-version-json.js",
  71. "lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
  72. "lint:js": "node ./script/lint.js --js",
  73. "lint:clang-format": "python script/run-clang-format.py -r -c atom/ chromium_src/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  74. "lint:cpp": "node ./script/lint.js --cc",
  75. "lint:objc": "node ./script/lint.js --objc",
  76. "lint:py": "node ./script/lint.js --py",
  77. "lint:gn": "node ./script/lint.js --gn",
  78. "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:check-trailing-whitespace",
  79. "lint:docs-relative-links": "python ./script/check-relative-doc-links.py",
  80. "lint:check-trailing-whitespace": "python ./script/check-trailing-whitespace.py",
  81. "lint:js-in-markdown": "standard-markdown docs",
  82. "create-api-json": "electron-docs-parser --dir=./",
  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. "preinstall": "node -e 'process.exit(0)'",
  88. "prepack": "check-for-leaks",
  89. "repl": "node ./script/start.js --interactive",
  90. "start": "node ./script/start.js",
  91. "test": "node ./script/spec-runner.js",
  92. "tsc": "tsc",
  93. "webpack": "node build/webpack/run-compiler"
  94. },
  95. "license": "MIT",
  96. "author": "Electron Community",
  97. "keywords": [
  98. "electron"
  99. ],
  100. "husky": {
  101. "hooks": {
  102. "pre-push": "check-for-leaks"
  103. }
  104. },
  105. "lint-staged": {
  106. "*.{js,ts}": [
  107. "node script/lint.js --js --fix --only --",
  108. "git add"
  109. ],
  110. "*.{js,ts,d.ts}": [
  111. "node script/gen-filenames.js",
  112. "git add"
  113. ],
  114. "*.{cc,mm,c,h}": [
  115. "python script/run-clang-format.py -r -c --fix",
  116. "git add"
  117. ],
  118. "*.md": [
  119. "npm run lint:docs"
  120. ],
  121. "*.{gn,gni}": [
  122. "npm run gn-check",
  123. "python script/run-gn-format.py",
  124. "git add"
  125. ],
  126. "*.py": [
  127. "node script/lint.js --py --fix --only --",
  128. "git add"
  129. ],
  130. "docs/api/**/*.md": [
  131. "node script/gen-filenames.js",
  132. "python script/check-trailing-whitespace.py --fix",
  133. "git add filenames.auto.gni"
  134. ],
  135. "{*.patch,.patches}": [
  136. "node script/lint.js --patches --only --"
  137. ],
  138. "DEPS": [
  139. "node script/gen-hunspell-filenames.js"
  140. ]
  141. },
  142. "dependencies": {
  143. "@types/temp": "^0.8.34"
  144. }
  145. }