morris.js/grunt.js

38 lines
805 B
JavaScript
Raw Normal View History

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']
}
2012-10-19 10:07:30 +02:00
},
watch: {
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee'],
tasks: 'default'
2012-06-26 08:15:54 +02:00
}
});
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
};