loading...

Tips for contributing to TypeScript

okmttdhr profile image okmttdhr ・1 min read
  • Contributing to TypeScript · microsoft/TypeScript Wiki
  • TypeScript/CONTRIBUTING.md at master · microsoft/TypeScript
  • Building
    • Use npm run gulp for those who don't want to install gulp globally.
  • Use TDD with running specific test cases, it's faster.
  • Managing the Baselines
    • Compiler test cases generate baselines which are;
    • .js - generated JavaScript
    • .types - the type of each expression in the file.
    • .symbols - generated symbols
    • .errors.txt - the errors produced by the compiler
    • You can inspect changes and the expected baselines
    • After verifying that the changes in the baselines are correct, run gulp baseline-accept
  • Enable Code Lens in VSCode. Show On All Functions is useful because compiler's code are written with a lot of functions.
  • Disable eslint auto fix, it's slow. (Anybody who knows how to speed up?)

Discussion

markdown guide