mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
39 lines
873 B
JavaScript
39 lines
873 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.initConfig({
|
|
coffee: {
|
|
lib: {
|
|
src: ['build/morris.coffee'],
|
|
dest: '.',
|
|
options: { bare: false }
|
|
},
|
|
spec: {
|
|
src: ['build/spec.coffee'],
|
|
dest: 'build',
|
|
options: { bare: true }
|
|
}
|
|
},
|
|
concat: {
|
|
'build/morris.coffee': ['lib/**/*.coffee'],
|
|
'build/spec.coffee': ['spec/support/**/*.coffee', 'spec/lib/**/*.coffee']
|
|
},
|
|
min: {
|
|
'morris.min.js': 'morris.js'
|
|
},
|
|
mocha: {
|
|
spec: {
|
|
src: 'spec/specs.html',
|
|
run: true
|
|
}
|
|
},
|
|
watch: {
|
|
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee', 'spec/support/**/*.coffee'],
|
|
tasks: 'default'
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-coffee');
|
|
grunt.loadNpmTasks('grunt-mocha');
|
|
|
|
grunt.registerTask('default', 'concat coffee min mocha');
|
|
};
|