Schematic Resources

Libraries and tools for working with Schematics

A few Angular Schematics I've built and worked on

AST Explorers

  • ts-ast-viewer - tool for inspecting Typescript AST metadata and provides a query to find a node or token based on the code you provide and highlight.
  • ast-explorer - an tool for inspecting AST metadata but not limited to just typescript.

Typescript codes

Manipulation and navigation

  • ts-query - a port of the ESQuery API for TypeScript! TSQuery allows you to query a TypeScript AST for patterns of syntax using a CSS style selector system.
  • ts-morph - This library wraps the TypeScript compiler API so it's simple.
  • VSCode schematic snippets - Code snippets collection for writing schematics

Learning resources other tools

  • Babel Handbook - Babel works with AST's to read and apply transformations. Other languages available here
  • Unified.js - an interface for processing text with syntax trees and transforming between them.