caplin / global-compiler

Compile global code into ES6 module code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global compiler

Build Status Dependency Status

Purpose

This repository hosts a set of JS code transforms. The purpose of the transforms is to take script JS code and transform it into CommonJS module code. The transforms are designed to be used by other tools.

Mechanics

The transforms are recast AST visitors. The transformations are independent of each other but can be composed to produce complex transformations. The transforms are configured by their user. The gc-cli repo has examples of how to utilize, combine and configure the transforms.

Testing

Run tests

$ npm t

About

Compile global code into ES6 module code


Languages

Language:JavaScript 100.0%