1234567891011121314151617181920212223242526272829303132333435363738 |
- /**
- * Compile CoffeeScript files to JavaScript.
- *
- * ---------------------------------------------------------------
- *
- * Compiles coffeeScript files from `assest/js` into Javascript and places them into
- * `.tmp/public/js` directory.
- *
- * For usage docs see:
- * https://github.com/gruntjs/grunt-contrib-coffee
- */
- module.exports = function(grunt) {
- grunt.config.set('coffee', {
- dev: {
- options: {
- bare: true,
- sourceMap: true,
- sourceRoot: './'
- },
- files: [{
- expand: true,
- cwd: 'assets/js/',
- src: ['**/*.coffee'],
- dest: '.tmp/public/js/',
- ext: '.js'
- }, {
- expand: true,
- cwd: 'assets/js/',
- src: ['**/*.coffee'],
- dest: '.tmp/public/js/',
- ext: '.js'
- }]
- }
- });
- grunt.loadNpmTasks('grunt-contrib-coffee');
- };
|