Permalink
Browse files

Convert browser-side code to typescript (#635)

* Convert config to typescript.

* Move config.js to config.ts

* Move util to typescript file.

* Convert util to typescript.

* Update tslint, automatically fix warnings.

* Rename childrunner to .ts

* convert childrunner to typescript.

* Move suites to typescript extension.

* Rename multi to typescript extension

* Get multi and suites compiling clean.

* Convert html.js

* Rename title.js

* Convert title

* Rename console

* Convert console

* Update config files to ignore generated files.

* Fixup linting.

* Improve vscode settings

* Rename clisocket

* Convert cliSocket

* Rename reporters

* Convert reporters

* Rename environment

* Convert environment

* Rename helpers

* Convert helpers

* Rename errors

* Convert errors

* Convert compatibility

* Add more files to gitignore and search ignore

* Rename extend

* Convert mocha/extend

* rename mocha/fixture

* Convert fixture

* Rename browser/replace

* Convert replace

* Rename mocha/stub

* Convert mocha/stub

* Update ignore files

* Rename mocha

* Convert mocha

* Rename index

* Convert index.ts

* Use .js suffix in imports consistently.

* Final update of ignore globs.

* Teach gulp to compile browser-side typescript.

* Update browser.js

* Update browser legacy.

* Remove jshint as tslint is used basically exclusively now.

* Fix error in conversion to typescript.

* lint
  • Loading branch information...
rictic committed Oct 13, 2017
1 parent 475139d commit ed21e16c1b91da0e9a64b32af7f726b3c8613a0d
Showing with 5,081 additions and 5,442 deletions.
  1. +6 −0 .gitignore
  2. +0 −14 .jshintrc
  3. +3 −1 .vscode/settings.json
  4. +1,529 −1,730 browser.js
  5. +1 −1 browser.js.map
  6. +0 −160 browser/childrunner.js
  7. +185 −0 browser/childrunner.ts
  8. +0 −144 browser/clisocket.js
  9. +156 −0 browser/clisocket.ts
  10. +0 −120 browser/config.js
  11. +117 −0 browser/config.ts
  12. +65 −0 browser/declarations.ts
  13. +28 −20 browser/{environment.js → environment.ts}
  14. +0 −34 browser/environment/compatability.js
  15. +42 −0 browser/environment/compatability.ts
  16. +9 −8 browser/environment/{errors.js → errors.ts}
  17. +79 −43 browser/environment/{helpers.js → helpers.ts}
  18. +0 −96 browser/index.js
  19. +106 −0 browser/index.ts
  20. +22 −18 browser/{mocha.js → mocha.ts}
  21. +0 −47 browser/mocha/extend.js
  22. +60 −0 browser/mocha/extend.ts
  23. +0 −19 browser/mocha/fixture.js
  24. +24 −0 browser/mocha/fixture.ts
  25. +0 −107 browser/mocha/replace.js
  26. +111 −0 browser/mocha/replace.ts
  27. +5 −5 browser/mocha/{stub.js → stub.ts}
  28. +29 −0 browser/more-declarations.ts
  29. +0 −64 browser/reporters.js
  30. +69 −0 browser/reporters.ts
  31. +0 −121 browser/reporters/console.js
  32. +137 −0 browser/reporters/console.ts
  33. +0 −68 browser/reporters/html.js
  34. +71 −0 browser/reporters/html.ts
  35. +0 −256 browser/reporters/multi.js
  36. +279 −0 browser/reporters/multi.ts
  37. +0 −92 browser/reporters/title.js
  38. +94 −0 browser/reporters/title.ts
  39. +67 −59 browser/{suites.js → suites.ts}
  40. +30 −0 browser/tsconfig.json
  41. +90 −72 browser/{util.js → util.ts}
  42. +2 −2 custom_typings/findup-sync.d.ts
  43. +1 −1 custom_typings/promisify-node.d.ts
  44. +4 −1 custom_typings/stacky.d.ts
  45. +36 −39 gulpfile.js
  46. +54 −332 package-lock.json
  47. +5 −8 package.json
  48. +10 −10 runner/clireporter.ts
  49. +5 −5 runner/context.ts
  50. +3 −3 runner/plugin.ts
  51. +1 −1 runner/port-scanner.ts
  52. +1 −1 runner/steps.ts
  53. +1 −1 runner/test.ts
  54. +4 −4 runner/webserver.ts
  55. +3 −3 test/integration/browser.ts
  56. +3 −1 tslint.json
  57. +1,533 −1,730 wct-browser-legacy/browser.js
  58. +1 −1 wct-browser-legacy/browser.js.map
View
@@ -16,3 +16,9 @@ test/integration/*.js
test/integration/*.d.ts
test/integration/*.js.map
test/fixtures/integration/temp
browser/*.js
browser/*.js.map
browser/environment/*.js*
browser/mocha/*.js*
browser/reporters/*.js*
View

This file was deleted.

Oops, something went wrong.
View
@@ -14,7 +14,9 @@
"test/integration/*.d.ts": true,
"test/integration/*.js.map": true,
"browser.js": true,
"browser.js.map": true
"browser.js.map": true,
"browser/**/*.js": true,
"browser/**/*.js.map": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
}
Oops, something went wrong.

0 comments on commit ed21e16

Please sign in to comment.