wearefractal/gulp-coffee — pull request #9 by lettertwo (2014-01-22 21:50:29+00:00)
Title: Detect `literate` option by default

This PR is relevant to the discussion in #6, where it was determined that auto-detection of the `literate` format based on file name would be bad for users who might have their own file extension naming scheme. The proposed change is that the default behavior is to detect the format, but allow the `literate` option to specify if necessary.

The basic idea is this: If the `literate` option is not defined, then the source file path is examined to attempt to automatically detect the format. If the `literate` option is defined, then that option is passed to the compiler regardless of file name. This behavior matches the expectation set by a similar feature of the Coffeescript command when given a file path to parse both with and without the ``--literate`` flag set.

See this [comment][1] on #6 for more.

[1]: https://github.com/wearefractal/gulp-coffee/pull/6#issuecomment-33064579