package.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. {
  2. "name": "chromium-bidi",
  3. "version": "0.4.16",
  4. "description": "An implementation of the WebDriver BiDi protocol for Chromium implemented as a JavaScript layer translating between BiDi and CDP, running inside a Chrome tab.",
  5. "scripts": {
  6. "build": "wireit",
  7. "clean": "rimraf lib .eslintcache .wireit",
  8. "coverage": "nyc mocha",
  9. "e2e-headful": "wireit",
  10. "e2e-headless": "wireit",
  11. "e2e": "npm run e2e-headless --",
  12. "eslint": "wireit",
  13. "flake8": "flake8 examples/ tests/",
  14. "format": "wireit",
  15. "pre-commit": "pre-commit run --all-files",
  16. "prepare": "wireit",
  17. "prettier": "prettier --write .",
  18. "rollup": "wireit",
  19. "server": "npm run server-headless --",
  20. "server-headful": "wireit",
  21. "server-headless": "wireit",
  22. "test": "wireit",
  23. "tsc": "wireit",
  24. "unit": "wireit",
  25. "wpt": "wireit",
  26. "wpt-all": "wireit",
  27. "yapf": "yapf -i --parallel --recursive --exclude=wpt examples/ tests/"
  28. },
  29. "nyc": {
  30. "exclude": [
  31. "**/*.spec.ts"
  32. ]
  33. },
  34. "wireit": {
  35. "build": {
  36. "dependencies": [
  37. "rollup",
  38. "tsc"
  39. ]
  40. },
  41. "e2e-headful": {
  42. "command": "python3 -m pytest",
  43. "dependencies": [
  44. "server-headful"
  45. ],
  46. "files": [
  47. "pytest.ini",
  48. "tests/**/*.py"
  49. ]
  50. },
  51. "e2e-headless": {
  52. "command": "python3 -m pytest",
  53. "dependencies": [
  54. "server-headless"
  55. ],
  56. "files": [
  57. "pytest.ini",
  58. "tests/**/*.py"
  59. ]
  60. },
  61. "eslint": {
  62. "command": "eslint --cache --ext .js,.ts --fix .",
  63. "files": [
  64. ".eslintignore",
  65. ".eslintrc.js",
  66. "src/**/*.ts"
  67. ],
  68. "output": [
  69. ".eslintcache"
  70. ],
  71. "dependencies": [
  72. "tsc"
  73. ]
  74. },
  75. "format": {
  76. "dependencies": [
  77. "eslint",
  78. "prettier",
  79. "yapf"
  80. ]
  81. },
  82. "prepare": {
  83. "dependencies": [
  84. "build"
  85. ]
  86. },
  87. "rollup": {
  88. "command": "rollup -c",
  89. "dependencies": [
  90. "tsc"
  91. ],
  92. "files": [
  93. "lib/cjs/bidiMapper/index.js",
  94. "rollup.config.mjs"
  95. ],
  96. "output": [
  97. "lib/iife/mapperTab.js"
  98. ]
  99. },
  100. "server-headful": {
  101. "command": "./runBiDiServer.sh --headless=false",
  102. "files": [
  103. "runBiDiServer.sh"
  104. ],
  105. "service": {
  106. "readyWhen": {
  107. "lineMatches": "Server is listening on port \\d+"
  108. }
  109. },
  110. "dependencies": [
  111. "rollup"
  112. ]
  113. },
  114. "server-headless": {
  115. "command": "./runBiDiServer.sh --headless=true",
  116. "files": [
  117. "runBiDiServer.sh"
  118. ],
  119. "service": {
  120. "readyWhen": {
  121. "lineMatches": "Server is listening on port \\d+"
  122. }
  123. },
  124. "dependencies": [
  125. "rollup"
  126. ]
  127. },
  128. "test": {
  129. "dependencies": [
  130. "unit",
  131. "e2e",
  132. "wpt"
  133. ]
  134. },
  135. "tsc": {
  136. "command": "tsc --build src/tsconfig.json --pretty",
  137. "clean": "if-file-deleted",
  138. "files": [
  139. "**/tsconfig*.json",
  140. "src/**/*.ts"
  141. ],
  142. "output": [
  143. "lib/cjs/**"
  144. ]
  145. },
  146. "unit": {
  147. "command": "mocha",
  148. "dependencies": [
  149. "tsc"
  150. ]
  151. },
  152. "wpt": {
  153. "command": "./runWPT.sh",
  154. "files": [
  155. "runWPT.sh"
  156. ],
  157. "dependencies": [
  158. "rollup"
  159. ]
  160. },
  161. "wpt-all": {
  162. "command": "./runWPTAll.sh",
  163. "files": [
  164. "runWPTAll.sh"
  165. ],
  166. "dependencies": [
  167. "rollup"
  168. ]
  169. }
  170. },
  171. "files": [
  172. "lib",
  173. "!lib/**/*.spec.*",
  174. ".browser"
  175. ],
  176. "repository": {
  177. "type": "git",
  178. "url": "https://github.com/GoogleChromeLabs/chromium-bidi.git"
  179. },
  180. "author": "The Chromium Authors",
  181. "license": "Apache-2.0",
  182. "peerDependencies": {
  183. "devtools-protocol": "*"
  184. },
  185. "devDependencies": {
  186. "@actions/core": "1.10.0",
  187. "@puppeteer/browsers": "1.1.0",
  188. "@rollup/plugin-commonjs": "24.1.0",
  189. "@rollup/plugin-node-resolve": "15.1.0",
  190. "@rollup/plugin-terser": "0.4.1",
  191. "@types/argparse": "2.0.10",
  192. "@types/chai": "4.3.5",
  193. "@types/chai-as-promised": "7.1.5",
  194. "@types/debug": "4.1.8",
  195. "@types/mocha": "10.0.1",
  196. "@types/node": "18.16.0",
  197. "@types/sinon": "10.0.14",
  198. "@types/websocket": "1.0.5",
  199. "@types/ws": "8.5.4",
  200. "@typescript-eslint/eslint-plugin": "5.59.2",
  201. "@typescript-eslint/parser": "5.59.8",
  202. "argparse": "2.0.1",
  203. "chai": "4.3.7",
  204. "chai-as-promised": "7.1.1",
  205. "chai-exclude": "2.1.0",
  206. "debug": "4.3.4",
  207. "devtools-protocol": "0.0.1151065",
  208. "eslint": "8.39.0",
  209. "eslint-config-prettier": "8.8.0",
  210. "eslint-plugin-import": "2.27.5",
  211. "eslint-plugin-mocha": "10.1.0",
  212. "eslint-plugin-prettier": "4.2.1",
  213. "eslint-plugin-promise": "6.1.1",
  214. "gts": "3.1.1",
  215. "mocha": "10.2.0",
  216. "nyc": "15.1.0",
  217. "prettier": "2.8.8",
  218. "rimraf": "5.0.0",
  219. "rollup": "3.23.0",
  220. "sinon": "15.0.4",
  221. "source-map-support": "0.5.21",
  222. "terser": "5.17.1",
  223. "tslib": "2.5.0",
  224. "typescript": "5.0.4",
  225. "websocket": "1.0.34",
  226. "wireit": "0.9.5",
  227. "ws": "8.13.0",
  228. "zod": "3.21.4"
  229. },
  230. "dependencies": {
  231. "mitt": "3.0.0"
  232. }
  233. }