morris.js/grunt.js
2012-09-01 11:04:06 +01:00

34 lines
704 B
JavaScript

module.exports = function (grunt) {
grunt.initConfig({
coffee: {
lib: {
src: ['build/morris.coffee'],
dest: '.',
options: { bare: false }
},
spec: {
src: ['spec/lib/*.coffee'],
dest: 'build/spec/lib',
options: { bare: false }
}
},
concat: {
'build/morris.coffee': ['lib/**/*.coffee']
},
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', 'concat coffee min mocha');
};