UNPKG

grunt-coffee-build

Version:

Compiles Coffeescript files, optionally merging and generating source maps.

38 lines (29 loc) 813 B
# grunt-coffee-build # https://github.com/tarruda/grunt-coffee-build # # Copyright (c) 2013 Thiago de Arruda # Licensed under the MIT license.) module.exports = (grunt) -> grunt.initConfig clean: all: ['build'] coffee_build: options: wrap: true sourceMap: true disableModuleWrap: ['index.coffee'] file: cwd: 'test' src: ['**/*.coffee', 'plain.js'] dest: 'build/build.js' directory: expand: true flatten: false cwd: 'test' src: ['**/*.coffee', 'plain.js'] dest: './build/all' grunt.loadTasks('tasks') grunt.loadNpmTasks('grunt-contrib-clean') grunt.loadNpmTasks('grunt-release') grunt.registerTask('test', ['clean', 'coffee_build']) grunt.registerTask('default', ['test'])