package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "name": "electron",
  3. "version": "6.1.12",
  4. "repository": "https://github.com/electron/electron",
  5. "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
  6. "devDependencies": {
  7. "@octokit/rest": "^16.3.2",
  8. "@types/chai": "^4.1.7",
  9. "@types/chai-as-promised": "^7.1.0",
  10. "@types/express": "^4.16.1",
  11. "@types/fs-extra": "^5.0.5",
  12. "@types/mocha": "^5.2.6",
  13. "@types/node": "^10.12.21",
  14. "@types/split": "^1.0.0",
  15. "@typescript-eslint/eslint-plugin": "^1.4.2",
  16. "@typescript-eslint/parser": "^1.4.2",
  17. "aliasify": "^2.1.0",
  18. "asar": "^1.0.0",
  19. "browserify": "^16.2.3",
  20. "check-for-leaks": "^1.0.2",
  21. "clang-format": "^1.2.3",
  22. "colors": "^1.1.2",
  23. "dotenv-safe": "^4.0.4",
  24. "dugite": "^1.45.0",
  25. "electron-docs-linter": "^3.0.1",
  26. "electron-typescript-definitions": "^8.2.2",
  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": "^0.14.3",
  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. "octicons": "^7.3.0",
  44. "plist": "^3.0.1",
  45. "pre-flight": "^1.1.0",
  46. "remark-cli": "^4.0.0",
  47. "remark-preset-lint-markdown-style-guide": "^2.1.1",
  48. "request": "^2.88.0",
  49. "semver": "^5.6.0",
  50. "serve": "^6.5.8",
  51. "shx": "^0.3.2",
  52. "standard-markdown": "^5.0.0",
  53. "sumchecker": "^2.0.2",
  54. "temp": "^0.8.3",
  55. "ts-node": "^6.0.3",
  56. "tsify": "^4.0.1",
  57. "typescript": "~3.3.3333"
  58. },
  59. "private": true,
  60. "scripts": {
  61. "asar": "asar",
  62. "browserify": "browserify",
  63. "bump-version": "./script/bump-version.js",
  64. "check-tls": "python ./script/tls.py",
  65. "clang-format": "find atom/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
  66. "lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
  67. "lint:js": "node ./script/lint.js --js",
  68. "lint:clang-format": "python script/run-clang-format.py -r -c atom/ chromium_src/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  69. "lint:cpp": "node ./script/lint.js --cc",
  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-linter docs --outfile=electron-api.json",
  77. "create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --in=electron-api.json --out=electron.d.ts && 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. "precommit": "lint-staged",
  82. "prepack": "check-for-leaks",
  83. "prepush": "check-for-leaks",
  84. "repl": "node ./script/start.js --interactive",
  85. "start": "node ./script/start.js",
  86. "test": "node ./script/spec-runner.js",
  87. "tsc": "tsc"
  88. },
  89. "license": "MIT",
  90. "author": "Electron Community",
  91. "keywords": [
  92. "electron"
  93. ],
  94. "aliasify": {
  95. "replacements": {
  96. "@electron/internal/(.+)": "./lib/$1"
  97. },
  98. "appliesTo": {
  99. "includeExtensions": [
  100. ".js",
  101. ".ts"
  102. ]
  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. "remark -qf"
  120. ],
  121. "*.{gn,gni}": [
  122. "python script/run-gn-format.py",
  123. "git add"
  124. ],
  125. "*.py": [
  126. "node script/lint.js --py --fix --only --",
  127. "git add"
  128. ],
  129. "docs/api/**/*.md": [
  130. "node script/gen-filenames.js",
  131. "python script/check-trailing-whitespace.py --fix",
  132. "git add filenames.auto.gni"
  133. ]
  134. }
  135. }