Skip to content

cheddar-lang/babel-plugin-compile-cheddar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-compile-cheddar

Compiles the given string in a __COMPILE function to a cheddar CST.

Installation

$ npm install babel-plugin-compile-cheddar

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["babel-plugin-compile-cheddar"]
}

Via CLI

$ babel --plugins compile-cheddar script.js

Via Node API

require('babel').transform('code', {
  plugins: ['compile-cheddar']
});

Example

See fixtures within tests

About

Compiles cheddar at compile-time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published