0.1.0 • Published 9 years ago

litpro-babel v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Litpro-babel Build Status

This implements running babel from the literate programming. The command is js-babel. It takes in ES6 code and outputs ES5 code as best as can be done.

This is a plugin for literate-programming.

Install npm install litpro-babel and then you can use this by requiring it in the lprc.js file.

Example lprc.js

module.exports = function (Folder) {
    require("litpro-babel")(Folder);
}

Example project.md

heading

This is a file that will generate a simple.js

console.log( [" a", "b", " c "].map( s => s.trim() ));

simple.js