# Using coffee-script for gulpfile

As discussed in [issue #103](https://github.com/gulpjs/gulp/issues/103), there are 2 ways to do this.

1. Use `gulp --require coffee-script/register` at the command line

2. Require in `gulpfile.coffee` after requiring `coffee-script` in `gulpfile.js`

`gulpfile.js`

```js
require('coffee-script/register');
require('./gulpfile.coffee');
```

`gulpfile.coffee`

```coffeescript
gulp = require 'gulp'

gulp.task 'default', ->
  console.log('default task called')
```

# Using coffee-script for gulpfile

As discussed in [issue #103](https://github.com/gulpjs/gulp/issues/103), there are 2 ways to do this.

1. Use `gulp --require coffee-script/register` at the command line

2. Require in `gulpfile.coffee` after requiring `coffee-script` in `gulpfile.js`

`gulpfile.js`

```js
require('coffee-script/register');
require('./gulpfile.coffee');
```

`gulpfile.coffee`

```coffeescript
gulp = require 'gulp'

gulp.task 'default', ->
  console.log('default task called')
```

Another option is to use  [coffeegulp](https://github.com/minibikini/coffeegulp).

Update `Using coffee-script for gulpfile` recipes
Update `Using coffee-script for gulpfile` recipes

Adds a link to coffeegulp.