node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

grunt-contrib-coffeeify

grunt-contrib-coffeeify

Browserify with CoffeeScript plugin for Grunt.

USAGE

Install

$ npm install grunt-contrib-coffeeify -D

Example

grunt.loadNpmTasks('grunt-contrib-coffeeify');
coffeeify: {
  build: {
    cwd:  'src/coffee',
    src:  ['*.coffee'],
    dest: 'dist/js'
  }
}

Options

aliases

coffeeify: {
  build: {
    cwd:  'src/coffee',
    src:  ['*.coffee'],
    dest: 'dist/js',
 
    // aliases
    aliases: [
      {
        cwd: 'src/coffee/app'
        dest: 'app'
        src: ['**/*.coffee', '**/*.js']
      }
  }
}

You can use src/coffee/app/views/View.coffee as var View = require('app/views/View');

License

Copyright (c) 2014 Yusuke Narita Licensed under the MIT license.