title: Grunt-browserify+mapify+coffeescript = module not found with relative path
body: <p>I try to get grunt-browserfy working with relative path for coffeescript but I always have an error message when I try to build my sources : </p>
  
  <pre><code>&gt;&gt; Error: module "src/app/utils/includeMixin" not found from "/[ABSOLUTE-PATH-TO-MY-PROJECT]/project/src/app/app-audit.coffee"
  </code></pre>
  
  <p>I have my file hierarchy presented like this :</p>
  
  <pre><code>project
   |- build
   |   |- libs.js
   |   |- audit.js
   |- src
       |- app
           |- app-audit.coffee
           |- utils
               |- includeMixin.coffee
       |- vendor
   |- node_modules
   |- gruntfile.coffee
  </code></pre>
  
  <p>I use grunt-browserify with the remapify plugin, coffeeify to transform my sources.</p>
  
  <p>I also use the grunt-browserifyBower to build my libs, but this one works like a charm.</p>
  
  <p>Here is an example of my gruntfile.coffee :</p>
  
  <pre><code>#Init grunt module
  module.exports = (grunt) -&gt;
      'use strict';
  
      remapify = require 'remapify'
      #Init Configuration
      grunt.initConfig
          browserify:
              dev:
                  files:
                      "build/audit.js": ["src/app/app-audit.coffee"]
                  options:
                      browserifyOptions:
                          extensions: ['.coffee']
                      bundleOptions:
                          debug: true
                      preBundleCB: (b) -&gt;
                          b.plugin remapify, [{
                              src: 'src/**/*.*'
                              expose: 'src'
                              cwd: __dirname
                          }]
                      transform: ["coffeeify"]
  
          browserifyBower:
              app:
                  options:
                      file: 'build/libs.js'
  </code></pre>
  
  <p>An example of my app-audit.coffee</p>
  
  <pre><code># ## Description
  # This file Manage the application's
  # modules dependencies and instanciations
  
  'use strict';
  
  # ## Dependencies
  # * Backbone Mixin includer
  # (TODO : Link to the doc)
  uIncludeMixin = require "src/app/utils/includeMixin"
  </code></pre>
  
  <p>And an example of my includeMixin.coffee</p>
  
  <pre><code>module.export = (mixins...) -&gt;
    throw('include(mixins...) requires at least one mixin') unless mixins and mixins.length &gt; 0
  
    for mixin in mixins
      for own key, value of mixin
        this::[key] = value
  
      included = mixin.included
      included.apply(this) if included
  
    this
  </code></pre>
  
  <p>Thanks a lot for any help.</p>