etnbrd/flx-compiler

View on GitHub
test-set/redis_key_overview-master/Gruntfile.coffee

Summary

Maintainability
Test Coverage
module.exports = ( grunt )->
    
    grunt.initConfig
        watch: 
            coffee: 
                files: ['_src/**/*.coffee', '_src_static/**/*.coffee']
                tasks: ['coffee']
        coffee: 
            server:
                expand: true
                cwd: '_src'
                src: ['*.coffee']
                dest: ''
                ext: '.js'
            modules:
                expand: true
                cwd: '_src/modules/'
                src: ['**/*.coffee']
                dest: 'modules'
                ext: '.js'
            static:
                expand: true
                cwd: '_src_static/'
                src: ['**/*.coffee']
                dest: 'static'
                ext: '.js'
            test:
                expand: true
                cwd: '_src/test/'
                src: ['**/*.coffee']
                dest: 'test'
                ext: '.js'

    grunt.loadNpmTasks('grunt-contrib-coffee')
    grunt.loadNpmTasks('grunt-contrib-watch')

    grunt.registerTask('build', ['coffee'])
    grunt.registerTask('buildonsave', ['watch'])

    grunt.registerTask('default', ['build'])

    return