package.json 4.3 KB

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