diff --git a/Gruntfile.coffee b/Gruntfile.coffee new file mode 100644 index 0000000..b13c034 --- /dev/null +++ b/Gruntfile.coffee @@ -0,0 +1,21 @@ +module.exports = (grunt) -> + grunt.initConfig + pkg: grunt.file.readJSON('package.json') + + coffee: + glob_to_multiple: + expand: true + cwd: 'src' + src: ['*.coffee'] + dest: 'lib' + ext: '.js' + + coffeelint: + src: ['src/**/*.coffee'] + gruntfile: ['Gruntfile.coffee'] + + grunt.loadNpmTasks('grunt-contrib-coffee') + grunt.loadNpmTasks('grunt-coffeelint') + + grunt.registerTask('lint', ['coffeelint']) + grunt.registerTask('default', ['lint', 'coffee']) diff --git a/package.json b/package.json index 0ed3f5a..84bf1c7 100644 --- a/package.json +++ b/package.json @@ -20,5 +20,11 @@ }, "dependencies": { "nexpect": "~0.4.0" + }, + "devDependencies": { + "grunt-cli": "~0.1.13", + "grunt": "~0.4.4", + "grunt-contrib-coffee": "~0.10.1", + "grunt-coffeelint": "0.0.10" } }