I originally wrote all of my
I had a friend show me a way to easily integrate CoffeeScript into Gulp, and I’m not looking back.
If you didn’t notice before, I use a modular approach to organizing my Gulp, so I have quite a few JS files to convert. Needless to say, I didn’t want to have to do it manually, so I found some tools to help automate.
Here’s how quickly you can do it:
1) Install JS2Coffee.
npm install -g js2coffee
1 2 3
$ touch /usr/local/bin/all2coffee $ vim /usr/local/bin/all2coffee # (...insert code and save file, and set permissions)
1 2 3
$ cd gulp/ $ all2coffee $ rm -rf **/*.js
4) Add a simple
Gulpfile.js with this in it:
You should be good to go!