piskel/Gruntfile.js

46 lines
819 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',
2013-05-27 02:38:54 +04:00
'package.json'
//,'js/**/*.js',
//'<%= nodeunit.tests %>'
2013-05-27 02:02:48 +04:00
]
},
connect: {
www: {
options: {
2013-05-27 02:29:40 +04:00
base: '.',
2013-05-27 02:02:48 +04:00
port: 4545
}
}
},
ghost: {
2013-05-27 02:45:22 +04:00
dist: {
filesSrc: ['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 02:02:48 +04:00
}
});
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-ghost');
2013-05-27 01:58:59 +04:00
2013-05-27 02:59:24 +04:00
grunt.registerTask('test', ['jshint', 'connect', 'ghost']);
2013-05-27 02:02:48 +04:00
};