/awesome-typescript-ecosystem

😎 A list of awesome TypeScript transformers, plugins, handbooks, etc

MIT LicenseMIT

Awesome TypeScript Ecosystem Awesome

😎 A list of awesome TypeScript transformers, plugins, handbooks, etc

As always, use caution when trying out TypeScript transformers & plugins, especially those marked as 🔧 experimental or 🔧🚧 under construction.

Handbooks

  • typescript-book - 📚 The definitive guide to TypeScript and possibly the best TypeScript book 📖
  • ts-transformer-handbook - 📘 A handbook on how to create transformers for Typescript with real code examples
  • TypeScript-Handbook - The TypeScript Handbook is a comprehensive guide to the TypeScript language
  • TypeScript wiki - The official wiki for TypeScript lang

Transformers

Transformers are synonymous with Babel Plugins. They enable transforming code from one to to another, generally used for improving the developer experience, doing performance optimizations, and more.

General transformers

Module resolution

  • ts-transformer-imports - A TypeScript transformer which enables compilation of absolute imports (using baseUrl or paths) so they can be required as modules from Javascript or TypeScript, without additional configuration or path mapping
  • ts-import-plugin - Modular import plugin for TypeScript

React

i18n

  • @formatjs/ts-transformer - Extracts string messages for translation from modules that use React Intl (similar to babel-plugin-react-intl)

Types

  • ts-transformer-keys - A TypeScript custom transformer which enables to obtain keys of given type

Testing

  • ts-auto-mock - A TypeScript transformer that will allow you to create mock for any types (Interfaces, Classes, ...) without need to create manual fakes/mocks.
  • jest-ts-auto-mock - Jest test utility with automatic mock creation for interfaces and classes
  • ts-transformer-testing-library - Make testing custom TypeScript transformers a breeze

Optimization

Language service plugins

Language service plugins enable rich developer experience warnings, errors, and even intellisense in your IDE. Read how to write your own langauge service plugin here.

  • ts-graphql-plugin - TypeScript Language Service Plugin for GraphQL developers
  • typescript-styled-plugin - TypeScript server plugin that adds intellisense to styled component css strings
  • tslint-language-service - TypeScript 2.2.1 plugin for tslint
  • ts-sql-plugin - TypeScript Language Service Plugin for SQL with a tagged template strings SQL builder
  • ts-mysql-plugin - A TypeScript Language Service Plugin that gives superpowers to SQL tagged template literals.

Tools

  • ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json
  • ts-morph - TypeScript Compiler API wrapper for static analysis and programmatic code changes
  • ts-creator - A code generator to generate TypeScript code generator from TypeScript code
  • typescript-json-schema - Generate json-schema from your TypeScript sources
  • ts-json-schema-generator - Generate JSON schema from your TypeScript sources
  • ts-query - TypeScript AST query library