morris.js/grunt.js
2012-06-26 07:15:54 +01:00

34 lines
699 B
JavaScript

module.exports = function (grunt) {
grunt.initConfig({
coffee: {
lib: {
src: ['lib/morris.coffee'],
dest: 'build/lib',
options: { bare: false }
},
spec: {
src: ['spec/lib/*.coffee'],
dest: 'build/spec/lib',
options: { bare: false }
}
},
concat: {
'morris.js': ['build/lib/*.js']
},
min: {
'morris.min.js': 'morris.js'
},
mocha: {
spec: {
runner: ['spec/spec_runner.html'],
specs: ['build/spec/**/*.js']
}
}
});
grunt.loadNpmTasks('grunt-coffee');
grunt.loadNpmTasks('grunt-mocha');
grunt.registerTask('default', 'coffee concat min mocha');
};