Formatting gruntfile correctly

This commit is contained in:
grosbouddha 2013-05-27 00:02:48 +02:00
parent d794301301
commit 72a28f7905
2 changed files with 52 additions and 49 deletions

View File

@ -1,11 +1,6 @@
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-ghost');
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
jshint: {
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
/*options: {
jshintrc: '.jshintrc'
},*/
@ -15,21 +10,21 @@ jshint: {
'source/**/*.js'/*,
'<%= nodeunit.tests %>'*/
]
},
/*
nodeunit: {
},
/*
nodeunit: {
tests: ['tests/nodeunit/*_test.js']
},
*/
connect: {
},
*/
connect: {
www: {
options: {
base: 'source',
port: 4545
}
}
},
ghost: {
},
ghost: {
test: {
files: [{
src: ['tests/integration/casperjs/*_test.js']
@ -45,4 +40,14 @@ ghost: {
printCommand: false,
printFilePaths: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-ghost');
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
};

View File

@ -1,2 +0,0 @@
test:
jshint js/*.js