Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anthonyshort/component-coffee
- Owner: anthonyshort
- Created: 2013-02-17T10:45:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-30T12:08:38.000Z (about 9 years ago)
- Last Synced: 2024-04-15T03:16:20.087Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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'
```