james-coffee

0.1.1 • Public • Published

Synopsis

CoffeeScript to JavaScript transformer for James.js.

james  = require 'james'
coffee = require 'james-coffee'
 
module.exports = tasks = {}
 
tasks.default = ->
  james.list 'src/**/*.coffee'(files) ->
    files.forEach (file) ->
      james.read(file)
        .transform(coffee bare: true)
        .write file.replace('src''dist').replace '.coffee''.js'
 

API

createStream(options) Returns a new CoffeeScript compiler pipe with given options.

literate:   boolean : Expect literate CoffeeScript instead of regular.
bare:       boolean : Don't wrap source to a closure.
header:     boolean : Print "// Compiled with CoffeeScript 1.x" on top of the compiled js file.

// TODO:
sourceMap:  boolean : Produce source map

Readme

Keywords

none

Package Sidebar

Install

npm i james-coffee

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • pyykkis
  • eetu
  • japsu