package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "name": "electron",
  3. "version": "6.0.0-nightly.20190311",
  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/mocha": "^5.2.6",
  11. "@types/node": "^10.12.21",
  12. "@types/split": "^1.0.0",
  13. "@typescript-eslint/eslint-plugin": "^1.4.2",
  14. "@typescript-eslint/parser": "^1.4.2",
  15. "aliasify": "^2.1.0",
  16. "asar": "^1.0.0",
  17. "browserify": "^16.2.3",
  18. "check-for-leaks": "^1.0.2",
  19. "clang-format": "^1.2.3",
  20. "colors": "^1.1.2",
  21. "dotenv-safe": "^4.0.4",
  22. "dugite": "^1.45.0",
  23. "electron-docs-linter": "^3.0.0",
  24. "electron-typescript-definitions": "^8.2.1",
  25. "eslint": "^5.13.0",
  26. "eslint-config-standard": "^12.0.0",
  27. "eslint-plugin-mocha": "^5.2.0",
  28. "eslint-plugin-typescript": "^0.14.0",
  29. "folder-hash": "^2.1.1",
  30. "fs-extra": "^7.0.1",
  31. "husky": "^0.14.3",
  32. "klaw": "^3.0.0",
  33. "lint": "^1.1.2",
  34. "lint-staged": "^8.1.0",
  35. "minimist": "^1.2.0",
  36. "nugget": "^2.0.1",
  37. "octicons": "^7.3.0",
  38. "plist": "^3.0.1",
  39. "pre-flight": "^1.1.0",
  40. "remark-cli": "^4.0.0",
  41. "remark-preset-lint-markdown-style-guide": "^2.1.1",
  42. "request": "^2.88.0",
  43. "semver": "^5.6.0",
  44. "serve": "^6.5.8",
  45. "shx": "^0.3.2",
  46. "standard-markdown": "^5.0.0",
  47. "sumchecker": "^2.0.2",
  48. "temp": "^0.8.3",
  49. "ts-node": "^6.0.3",
  50. "tsify": "^4.0.1",
  51. "typescript": "~3.3.3333"
  52. },
  53. "private": true,
  54. "scripts": {
  55. "asar": "asar",
  56. "browserify": "browserify",
  57. "bump-version": "./script/bump-version.js",
  58. "check-tls": "python ./script/tls.py",
  59. "clang-format": "find atom/ chromium_src/ -iname *.h -o -iname *.cc -o -iname *.mm | xargs clang-format -i",
  60. "lint": "node ./script/lint.js && npm run lint:clang-format && npm run lint:docs",
  61. "lint:js": "node ./script/lint.js --js",
  62. "lint:clang-format": "python script/run-clang-format.py -r -c atom/ chromium_src/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
  63. "lint:cpp": "node ./script/lint.js --cc",
  64. "lint:py": "node ./script/lint.js --py",
  65. "lint:gn": "node ./script/lint.js --gn",
  66. "lint:docs": "remark docs -qf && npm run lint:js-in-markdown && npm run create-typescript-definitions && npm run lint:docs-relative-links",
  67. "lint:docs-relative-links": "python ./script/check-relative-doc-links.py",
  68. "lint:js-in-markdown": "standard-markdown docs",
  69. "create-api-json": "electron-docs-linter docs --outfile=electron-api.json",
  70. "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",
  71. "gn-typescript-definitions": "npm run create-typescript-definitions && shx cp electron.d.ts",
  72. "pre-flight": "pre-flight",
  73. "preinstall": "node -e 'process.exit(0)'",
  74. "precommit": "lint-staged",
  75. "prepack": "check-for-leaks",
  76. "prepush": "check-for-leaks",
  77. "repl": "node ./script/start.js --interactive",
  78. "start": "node ./script/start.js",
  79. "test": "node ./script/spec-runner.js",
  80. "tsc": "tsc"
  81. },
  82. "license": "MIT",
  83. "author": "Electron Community",
  84. "keywords": [
  85. "electron"
  86. ],
  87. "aliasify": {
  88. "replacements": {
  89. "@electron/internal/(.+)": "./lib/$1"
  90. },
  91. "appliesTo": {
  92. "includeExtensions": [
  93. ".js",
  94. ".ts"
  95. ]
  96. }
  97. },
  98. "lint-staged": {
  99. "*.{js,ts}": [
  100. "node script/lint.js --js --fix --only --",
  101. "git add"
  102. ],
  103. "*.{cc,mm,c,h}": [
  104. "python script/run-clang-format.py -r -c --fix",
  105. "git add"
  106. ],
  107. "*.md": [
  108. "remark -qf"
  109. ],
  110. "*.{gn,gni}": [
  111. "python script/run-gn-format.py",
  112. "git add"
  113. ],
  114. "*.py": [
  115. "node script/lint.js --py --fix --only --",
  116. "git add"
  117. ],
  118. "docs/api/*.md": [
  119. "node script/gen-filenames.js",
  120. "git add filenames.auto.gni"
  121. ]
  122. }
  123. }