Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anthonyshort/component-coffee

Component(1) plugin to compile CoffeeScript on-the-fly
https://github.com/anthonyshort/component-coffee

Last synced: 24 days ago
JSON representation

Component(1) plugin to compile CoffeeScript on-the-fly

Awesome Lists containing this project

README

        

# component-coffee

Component plugin to compile CoffeeScript files on-the-fly. This allows you to write components in CoffeeScript.

## Installation

```
npm install component-coffee
```

## Usage

```
component build --use component-coffee
```

Add you CoffeeScript files to the `scripts` section of your `component.json`

```
{
"name": "foo",
"scripts": ["index.coffee", "foo.coffee", "bar.coffee"]
}
```

Now in your `index.coffee` file you can require it:

```
foo = require 'foo'
bar = require 'bar'
```