Skip to content

browserify v2 plugin to compile coffee-script automatically

License

Notifications You must be signed in to change notification settings

maxtaco/icsify

This branch is 61 commits ahead of jtmalinowski/coffeeify:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9f0126e · Oct 19, 2018

History

68 Commits
Mar 5, 2014
Mar 5, 2014
Mar 5, 2014
Jun 1, 2013
Mar 3, 2013
Oct 29, 2014
Mar 5, 2014
Oct 19, 2018
Oct 19, 2018
Nov 22, 2013

Repository files navigation

coffeeify

browserify v2 plugin for coffee-script

mix and match .coffee and .js files in the same project

Build Status

example

given some files written in a mix of js and coffee:

foo.coffee:

console.log(require './bar.js')

bar.js:

module.exports = require('./baz.coffee')(5)

baz.coffee:

module.exports = (n) -> n * 111

install coffeeify into your app:

$ npm install coffeeify

when you compile your app, just pass -t coffeeify to browserify:

$ browserify -t coffeeify foo.coffee > bundle.js
$ node bundle.js
555

you can omit the .coffee extension from your requires if you add the extension to browserify's module extensions:

module.exports = require('./baz')(5)
$ browserify -t coffeeify --extension=".coffee" foo.coffee > bundle.js
$ node bundle.js
555

install

With npm do:

npm install coffeeify

license

MIT

About

browserify v2 plugin to compile coffee-script automatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.9%
  • CoffeeScript 11.1%