module.exports = function(grunt) {
  grunt.initConfig({
    coffee: {
      lib: {
        expand: true,
        cwd: 'src',
        src: '*.coffee',
        dest: 'lib/',
        ext: '.js'
      },
      example: {
        expand: true,
        cwd: 'example',
        src: '*.coffee',
        dest: 'example/',
        ext: '.js'
      }
    },
    simplemocha: {
      options: {
        reporter: 'spec'
      },

      all: { src: ['test/*.js'] }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-coffee');
  grunt.loadNpmTasks('grunt-simple-mocha');

  grunt.registerTask('default', ['coffee', 'simplemocha']);
};
