UNPKG

747 Btext/coffeescriptView Raw
1# grunt-coffee-build
2# https://github.com/tarruda/grunt-coffee-build
3#
4# Copyright (c) 2013 Thiago de Arruda
5# Licensed under the MIT license.)
6
7
8module.exports = (grunt) ->
9
10 grunt.initConfig
11 clean:
12 all: ['build']
13
14 coffee_build:
15 options:
16 wrap: true
17 sourceMap: true
18 disableModuleWrap: ['index.coffee']
19 file:
20 cwd: 'test'
21 src: '**/*.coffee'
22 dest: 'build/build.js'
23 directory:
24 expand: true
25 flatten: false
26 cwd: 'test'
27 src: '**/*.coffee'
28 dest: './build/all'
29
30
31 grunt.loadTasks('tasks')
32
33 grunt.loadNpmTasks('grunt-contrib-clean')
34
35 grunt.registerTask('test', ['clean', 'coffee_build'])
36 grunt.registerTask('default', ['test'])