Gruntfile.coffee 743 B

1234567891011121314151617181920212223242526272829
  1. module.exports = (grunt) ->
  2. grunt.initConfig
  3. coffee:
  4. unit_tests:
  5. expand: true
  6. cwd: "test/unit/coffee"
  7. src: ["**/*.coffee"]
  8. dest: "test/unit/js/"
  9. ext: ".js"
  10. clean:
  11. unit_tests: ["test/unit/js"]
  12. mochaTest:
  13. unit:
  14. options:
  15. reporter: grunt.option('reporter') or 'spec'
  16. grep: grunt.option("grep")
  17. src: ["test/unit/js/**/*.js"]
  18. grunt.loadNpmTasks 'grunt-contrib-coffee'
  19. grunt.loadNpmTasks 'grunt-contrib-clean'
  20. grunt.loadNpmTasks 'grunt-mocha-test'
  21. grunt.loadNpmTasks 'grunt-execute'
  22. grunt.loadNpmTasks 'grunt-bunyan'
  23. grunt.registerTask 'compile:unit_tests', ['clean:unit_tests', 'coffee:unit_tests']
  24. grunt.registerTask 'test:unit', ['compile:unit_tests', 'mochaTest:unit']