Skip to content
Build your ASTs directly from code
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
public
tests
vendor
.editorconfig
.ember-cli
.eslintignore
.eslintrc.js
.gitignore
.template-lintrc.js
.travis.yml
.watchmanconfig
README.md
ember-cli-build.js
package-lock.json
package.json
testem.js

README.md

ast-builder

Build your Abstract Syntax Trees (AST) directly by writing code. Simply type in your code and get the right jscodeshift api to build your AST.

Read the introductory blog post to know more about the tool.

This application is built in Ember.js

How to use it?

  • TOP LEFT PANE => Source code
  • TOP RIGHT PANE => AST
  • BOTTOM LEFT PANE => Builder API
  • BOTTOM RIGHT PANE => Verified Output (Source code)

screenshot

Motivation

The reason this project is created is because, I am simply frustrated for looking up reference for writing codemods and the jscodeshift api is not very well documented.

This is an interactive version of jscodeshift-docs

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd ast-builder
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • npm run lint:hbs
  • npm run lint:js
  • npm run lint:js -- --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links

You can’t perform that action at this time.