Skip to content

Commit

Permalink
Merge f3e5ed8 into 5cf727d
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jan 14, 2014
2 parents 5cf727d + f3e5ed8 commit f4db514
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/recipes/using-coffee-script-for-gulpfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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` at the command line

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

`gulpfile.js`

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

`gulpfile.coffee`

```coffeescript
gulp = require 'gulp'

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

0 comments on commit f4db514

Please sign in to comment.