UNPKG

coffeemill

Version:
96 lines (87 loc) 1.94 kB
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON 'package.json' watch: bin: files: [ 'src/bin/*.coffee' ] tasks: [ 'bin' 'tests' ] lib: files: [ 'src/lib/*.coffee' 'tests/*.coffee' 'tests/src/**/*.coffee' 'tests/src/**/*.js' ] tasks: [ 'lib' 'tests' ] coffee: bin : options: bare: true files : [ expand: true cwd : 'src/bin' src : [ '*.coffee' ] dest : 'bin' ext : '.js' ] lib : files: [ expand: true cwd : 'src/lib' src : [ '*.coffee' ] dest : 'lib' ext : '.js' ] tests: files: [ expand: true src : [ 'tests/*.coffee' ] ext : '.js' ] concat: bin: options: banner: '#!/usr/bin/env node\n\n' src : [ 'bin/coffeemill.js' ] dest : 'bin/coffeemill' clean: bin : [ 'bin/*.js' ] tests: [ 'tests/*.js' ] simplemocha: options: reporter: 'tap' tests: [ 'tests/**/*_tests.js' ] grunt.loadNpmTasks 'grunt-contrib-watch' grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-concat' grunt.loadNpmTasks 'grunt-contrib-clean' grunt.loadNpmTasks 'grunt-simple-mocha' grunt.loadNpmTasks 'grunt-mocha-test' grunt.loadNpmTasks 'grunt-release' grunt.registerTask 'bin', [ 'coffee:bin' 'concat:bin' 'clean:bin' ] grunt.registerTask 'lib', [ 'coffee:lib' ] grunt.registerTask 'tests', [ 'coffee:tests' 'simplemocha:tests' 'clean:tests' ] grunt.registerTask 'run', [ 'bin' 'lib' 'tests' ] grunt.registerTask 'default', [ 'run', 'watch' ]