gruntfile.js 758 B

1234567891011121314151617181920212223242526272829
  1. module.exports = function (grunt) {
  2. grunt.initConfig({
  3. karma: {
  4. options: {
  5. frameworks: ['jasmine', 'commonjs'],
  6. preprocessors: {
  7. 'src/*.js': ['commonjs'],
  8. 'test/unit/specs/*': ['commonjs']
  9. },
  10. files: [
  11. 'src/*.js',
  12. 'test/unit/specs/*.js'
  13. ],
  14. singleRun: true
  15. },
  16. browsers: {
  17. options: {
  18. browsers: ['Chrome', 'Firefox'],
  19. reporters: ['progress']
  20. }
  21. }
  22. }
  23. })
  24. grunt.loadNpmTasks('grunt-karma')
  25. grunt.registerTask('unit', ['karma:browsers'])
  26. }