nct-downloader
Version:
Download nhaccuatui
65 lines (55 loc) • 1.35 kB
JavaScript
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
nodeunit: {
files: ['test/**/*_test.js'],
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: 'Gruntfile.js'
},
lib: {
src: ['lib/**/*.js']
},
test: {
src: ['test/**/*.js']
},
},
watch: {
dev: {
files: ['coffee/*.coffee'],
tasks: ['coffee'],
options: {
debounceDelay: 250,
},
},
},
coffee: {
//compile: {
//files: {
//'lib/nct-downloader.ks': 'lib/coffee/nct-downloader.coffee', // 1:1 compile
////'path/to/another.js': ['path/to/sources/*.coffee', 'path/to/more/*.coffee'] // compile and concat into single file
//}
//},
glob_to_multiple: {
expand: true,
flatten: true,
cwd: 'coffee',
src: ['*.coffee'],
dest: 'lib',
ext: '.js'
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-coffee')
// Default task.
grunt.registerTask('default', ['jshint', 'nodeunit']);
};