Coffee Script Plugin

Description

Transpile .coffee files into JavaScript.

Usage

Setup

Import from FuseBox

const {CoffeePlugin} = require("fuse-box");

Inject into a chain

fuse.plugin(
     CoffeePlugin()
)

Or add it to the main config plugins list to make it available across bundles

FuseBox.init({
    plugins : [
         CoffeePlugin()
    ]
});

Require file in your code

import * as config from "./config.json"

Options

CoffeePlugin accepts a key/value CoffeeScript object options as a parameter. For example:

plugins: [
    [CoffeePlugin({
        bare: false,
    })]
]

Test

To run tests

node test --file=CoffeePlugin.test.ts