2012-06-26 08:15:54 +02:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.initConfig({
|
|
|
|
coffee: {
|
|
|
|
lib: {
|
2012-09-01 12:04:06 +02:00
|
|
|
src: ['build/morris.coffee'],
|
|
|
|
dest: '.',
|
2012-06-26 08:15:54 +02:00
|
|
|
options: { bare: false }
|
|
|
|
},
|
|
|
|
spec: {
|
|
|
|
src: ['spec/lib/*.coffee'],
|
|
|
|
dest: 'build/spec/lib',
|
|
|
|
options: { bare: false }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
concat: {
|
2012-09-01 12:04:06 +02:00
|
|
|
'build/morris.coffee': ['lib/**/*.coffee']
|
2012-06-26 08:15:54 +02:00
|
|
|
},
|
|
|
|
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');
|
|
|
|
|
2012-09-01 12:04:06 +02:00
|
|
|
grunt.registerTask('default', 'concat coffee min mocha');
|
2012-06-26 08:15:54 +02:00
|
|
|
};
|