piskel/Gruntfile.js

54 lines
967 B
JavaScript
Raw Normal View History

2013-05-27 02:02:48 +04:00
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: 'source',
port: 4545
}
}
},
ghost: {
test: {
files: [{
src: ['tests/integration/casperjs/*_test.js']
}]
},
options: {
args: {
baseUrl: 'http://localhost:' +
'<%= connect.www.options.port %>/'
},
direct: false,
logLevel: 'error',
printCommand: false,
printFilePaths: true
}
}
});
2013-05-27 01:58:59 +04:00
2013-05-27 02:02:48 +04:00
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-ghost');
2013-05-27 01:58:59 +04:00
2013-05-27 02:02:48 +04:00
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
};