package.json 4.3 KB

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