UNPKG

@tsjing/nsqjs

Version:
57 lines (47 loc) 1.27 kB
"use strict" module.exports = (grunt) -> # Project configuration. grunt.initConfig coffee: lib: options: bare: true sourceMap: true expand: true src: ['src/**/*.coffee'] dest: 'dest' ext: '.js' test: options: bare: true expand: true src: ['test/**/*.coffee'] dest: 'test' ext: '.js' watch: lib: files: '<%= coffee.lib.src %>' tasks: ['coffee:lib'] test: files: [ '<%= coffee.src.src %>' '<%= coffee.test.src %>' ] tasks: ['coffee', 'test'] mochacli: options: require: ['coffee-errors'] reporter: 'spec' colors: true compilers: ['coffee:coffee-script'] all: ['./test/*.coffee'] coffeelint: lib: ['*.coffee', 'src/*.coffee', 'test/*.coffee', 'examples/.*coffee'] # These plugins provide necessary tasks. grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-watch' grunt.loadNpmTasks 'grunt-mocha-cli' grunt.loadNpmTasks 'grunt-coffeelint' grunt.registerTask 'default', ['watch'] grunt.registerTask 'test', ['mochacli'] grunt.registerTask 'lint', ['coffeelint']