
| Current Path : /var/www/web-klick.de/dsh/50_dev2017/1313__procpyjs/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/50_dev2017/1313__procpyjs/Gruntfile.js |
'use strict';
module.exports = function(grunt) {
// Show elapsed time at the end
require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks("grunt-jscs");
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
gruntfile: {
src: ['Gruntfile.js']
},
js: {
src: ['src/app/*.js']
},
test: {
src: ['test/**/*.js']
}
},
jscs: {
src: ['src/app/*.js'],
options: {
config: '.jscsrc',
verbose: true,
requireCurlyBraces: ['if'],
fix: true //simply magic!
}
},
mochacli: {
options: {
reporter: 'nyan',
bail: true
},
all: ['test/*.js']
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
},
js: {
files: '<%= jshint.js.src %>',
tasks: ['jshint:js', 'mochacli']
},
test: {
files: '<%= jshint.test.src %>',
tasks: ['jshint:test', 'mochacli']
}
},
shell: {
send: {
command: 'node test/email.js'
}
}
});
grunt.registerTask('default', ['jshint', 'mochacli']);
grunt.registerTask('mailer', ['shell']);
};