Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scipion/babel-types-by-example

This is NOT the official documentation of @babel/types, just a presentation of it driven by examples.
https://github.com/scipion/babel-types-by-example

ast babel babel-types babeljs ecmascript specification

Last synced: 27 days ago
JSON representation

This is NOT the official documentation of @babel/types, just a presentation of it driven by examples.

Awesome Lists containing this project

README

        

# @babel/types by example

See the website [@babel/types by example](#)

See the official website [@babel/types](https://babeljs.io/docs/babel-types)

This is a [Next.js](https://nextjs.org/) app to enrich the official documentation.

## Motivation

On the process of learing babel and how to develop babel plugins I've used [astexplorer.net](https://astexplorer.net/) (as I think everybody learing does) and checking back end forth the [babel original documentation](https://babeljs.io/docs/babel-types).

At some point I thought it would be nice to have them both together. This Docs are the @babel/types generated MD's, but guided by examples of code highlighting each token in a example.

## Getting Started

I'm using _pnpm_ to build the site and _bun_ to build the main page in _src/app/page.mdx_:

```bash
pnpm run docs # using bun, check script in package.json

pnpm run build
```

## Learn more about Next.js:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.