Gruntfile.coffee 692 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = (grunt) ->
  2. # Project configuration.
  3. grunt.initConfig
  4. coffee:
  5. server:
  6. expand: true,
  7. flatten: false,
  8. cwd: 'app/coffee',
  9. src: ['**/*.coffee'],
  10. dest: 'app/js/',
  11. ext: '.js'
  12. server_tests:
  13. expand: true,
  14. flatten: false,
  15. cwd: 'test/unit/coffee',
  16. src: ['**/*.coffee'],
  17. dest: 'test/unit/js/',
  18. ext: '.js'
  19. mochaTest:
  20. unit:
  21. options:
  22. reporter: process.env.MOCHA_RUNNER || "spec"
  23. grep: grunt.option("grep")
  24. require: 'coffee-script/register'
  25. src: ['test.coffee']
  26. grunt.loadNpmTasks 'grunt-contrib-coffee'
  27. grunt.loadNpmTasks 'grunt-mocha-test'
  28. grunt.registerTask 'test:unit', ['mochaTest:unit']