Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Support coffeescript dependencies #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lib/stitch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/stitch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.Package = class Package
else callback null, parts.join("\n")

compileDependencies: (callback) =>
async.map @dependencies, fs.readFile, (err, dependencySources) =>
async.map @dependencies, @compileFile, (err, dependencySources) =>
if err then callback err
else callback null, dependencySources.join("\n")

Expand Down Expand Up @@ -176,7 +176,7 @@ exports.Package = class Package
return callback null, sourcePath.slice base.length
callback new Error "#{path} isn't in the require path"

compileFile: (path, callback) ->
compileFile: (path, callback) =>
extension = extname(path).slice(1)

if @cache and @compileCache[path] and @mtimeCache[path] is @compileCache[path].mtime
Expand Down