package.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "electron",
  3. "version": "5.0.13",
  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. "aliasify": "^2.1.0",
  9. "asar": "^0.11.0",
  10. "browserify": "^13.1.0",
  11. "check-for-leaks": "^1.0.2",
  12. "clang-format": "^1.2.3",
  13. "colors": "^1.1.2",
  14. "dotenv-safe": "^4.0.4",
  15. "dugite": "^1.45.0",
  16. "electron-docs-linter": "^2.4.0",
  17. "electron-typescript-definitions": "^7.0.0",
  18. "eslint": "^5.6.0",
  19. "eslint-config-standard": "^12.0.0",
  20. "eslint-plugin-mocha": "^5.2.0",
  21. "folder-hash": "^2.1.1",
  22. "got": "^9.6.0",
  23. "husky": "^0.14.3",
  24. "lint": "^1.1.2",
  25. "lint-staged": "^8.1.0",
  26. "minimist": "^1.2.0",
  27. "nugget": "^2.0.1",
  28. "octicons": "^7.3.0",
  29. "plist": "^3.0.1",
  30. "remark-cli": "^4.0.0",
  31. "remark-preset-lint-markdown-style-guide": "^2.1.1",
  32. "request": "^2.88.0",
  33. "semver": "^5.6.0",
  34. "serve": "^6.5.8",
  35. "standard-markdown": "^5.0.0",
  36. "sumchecker": "^2.0.2",
  37. "temp": "^0.8.3"
  38. },
  39. "private": true,
  40. "scripts": {
  41. "asar": "asar",
  42. "browserify": "browserify",
  43. "bump-version": "./script/bump-version.js",
  44. "check-tls": "python ./script/tls.py",
  45. "clang-format": "find atom/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
  46. "lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
  47. "lint:js": "node ./script/lint.js --js",
  48. "lint:clang-format": "python script/run-clang-format.py -r -c atom/ chromium_src/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  49. "lint:cpp": "node ./script/lint.js --cc",
  50. "lint:py": "node ./script/lint.js --py",
  51. "lint:gn": "node ./script/lint.js --gn",
  52. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:docs-relative-links",
  53. "lint:docs-relative-links": "python ./script/check-relative-doc-links.py",
  54. "lint:js-in-markdown": "standard-markdown docs",
  55. "create-api-json": "electron-docs-linter docs --outfile=electron-api.json",
  56. "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",
  57. "preinstall": "node -e 'process.exit(0)'",
  58. "precommit": "lint-staged",
  59. "prepack": "check-for-leaks",
  60. "prepush": "check-for-leaks",
  61. "repl": "node ./script/start.js --interactive",
  62. "start": "node ./script/start.js",
  63. "test": "node ./script/spec-runner.js electron/spec"
  64. },
  65. "license": "MIT",
  66. "author": "Electron Community",
  67. "keywords": [
  68. "electron"
  69. ],
  70. "aliasify": {
  71. "replacements": {
  72. "@electron/internal/(.+)": "./lib/$1"
  73. }
  74. },
  75. "lint-staged": {
  76. "*.{js,ts}": [
  77. "node script/lint.js --js --fix --only --",
  78. "git add"
  79. ],
  80. "*.{cc,mm,c,h}": [
  81. "python script/run-clang-format.py -r -c --fix",
  82. "git add"
  83. ],
  84. "*.md": [
  85. "remark -qf"
  86. ]
  87. }
  88. }