package.json 4.6 KB

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