fork download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. module.exports = (grunt) ->
  5. grunt.initConfig
  6. pkg: grunt.file.readJSON('package.json')
  7. connect:
  8. server:
  9. options:
  10. port: 8000
  11. base: './'
  12. coffee:
  13. compile:
  14. files:
  15. 'velato.js': ['velato/**/*.coffee']
  16. watch:
  17. karma:
  18. files: ['velato.js']
  19. tasks: ['karma:unit:run']
  20. coffee:
  21. options:
  22. livereload: true
  23. debounceDelay: 8000
  24. files: ['index.html', 'velato/**/*.coffee']
  25. tasks: ['coffee']
  26. concurrent:
  27. options:
  28. logConcurrentOutput: true
  29. target:
  30. tasks: ['watch', 'karma:unit:start']
  31. karma:
  32. options:
  33. configFile: 'test/karma.conf.js'
  34. browsers: ['PhantomJS']
  35. unit:
  36. reporters: 'dots'
  37. singleRun: false
  38. autoWatch: true
  39.  
  40. grunt.loadNpmTasks 'grunt-contrib-connect'
  41. grunt.loadNpmTasks 'grunt-contrib-coffee'
  42. grunt.loadNpmTasks 'grunt-contrib-watch'
  43. grunt.loadNpmTasks 'grunt-concurrent'
  44. grunt.loadNpmTasks 'grunt-karma'
  45.  
  46. grunt.registerTask 'default', ['connect', 'concurrent:target']
  47. # your code goes here
Success #stdin #stdout 0.24s 39600KB
stdin
Standard input is empty
stdout
// Generated by CoffeeScript 2.4.1
(function() {
  importPackage(java.io);

  importPackage(java.lang);

  module.exports = function(grunt) {
    grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),
      connect: {
        server: {
          options: {
            port: 8000,
            base: './'
          }
        }
      },
      coffee: {
        compile: {
          files: {
            'velato.js': ['velato/**/*.coffee']
          }
        }
      },
      watch: {
        karma: {
          files: ['velato.js'],
          tasks: ['karma:unit:run']
        },
        coffee: {
          options: {
            livereload: true,
            debounceDelay: 8000
          },
          files: ['index.html', 'velato/**/*.coffee'],
          tasks: ['coffee']
        }
      },
      concurrent: {
        options: {
          logConcurrentOutput: true
        },
        target: {
          tasks: ['watch', 'karma:unit:start']
        }
      },
      karma: {
        options: {
          configFile: 'test/karma.conf.js',
          browsers: ['PhantomJS']
        },
        unit: {
          reporters: 'dots',
          singleRun: false,
          autoWatch: true
        }
      }
    });
    grunt.loadNpmTasks('grunt-contrib-connect');
    grunt.loadNpmTasks('grunt-contrib-coffee');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-concurrent');
    grunt.loadNpmTasks('grunt-karma');
    return grunt.registerTask('default', ['connect', 'concurrent:target']);
  };

  // your code goes here

}).call(this);