https://github.com/caplin/global-compiler
Compile global code into ES6 module code
https://github.com/caplin/global-compiler
Last synced: 3 months ago
JSON representation
Compile global code into ES6 module code
- Host: GitHub
- URL: https://github.com/caplin/global-compiler
- Owner: caplin
- Created: 2014-07-01T13:24:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-17T11:58:14.000Z (over 9 years ago)
- Last Synced: 2024-12-28T19:52:03.400Z (5 months ago)
- Language: JavaScript
- Size: 245 KB
- Stars: 1
- Watchers: 22
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Global compiler
[](http://travis-ci.org/briandipalma/global-compiler)
[](https://david-dm.org/briandipalma/global-compiler)### 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](https://github.com/benjamn/recast). 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](https://github.com/briandipalma/gc-cli) has examples of how to utilize, combine and configure the
transforms.### Testing
Run tests
```bash
$ npm t
```