package.json 4.8 KB

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