You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
781 B
38 lines
781 B
/** |
|
* 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'); |
|
};
|
|
|