piskel/Gruntfile.js
2013-05-27 00:29:40 +02:00

53 lines
972 B
JavaScript

module.exports = function(grunt) {
grunt.initConfig({
jshint: {
/*options: {
jshintrc: '.jshintrc'
},*/
files: [
'Gruntfile.js',
'package.json',
'source/**/*.js'/*,
'<%= nodeunit.tests %>'*/
]
},
/*
nodeunit: {
tests: ['tests/nodeunit/*_test.js']
},
*/
connect: {
www: {
options: {
base: '.',
port: 4545
}
}
},
ghost: {
test: {
files: [{
src: ['tests/integration/casperjs/*_test.js']
}]
},
options: {
args: {
baseUrl: 'http://localhost:' +
'<%= connect.www.options.port %>/index.html'
},
direct: false,
logLevel: 'error',
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']);
};