Skip to content

Commit

Permalink
Add test task to alias qunit and jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Mar 17, 2013
1 parent 00dff5f commit ff64dae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ module.exports = function( grunt ) {
}
}
});
// Load required contrib packages
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
Expand All @@ -193,9 +194,11 @@ module.exports = function( grunt ) {
grunt.registerMultiTask('generateinit', "Generate Init file", function() {
grunt.file.write('tmp/modernizr-init.js', generateInit(modConfig));
});
// Testing tasks
grunt.registerTask('test', ['jshint', 'qunit']);

// Travis CI task.
grunt.registerTask('travis', 'qunit');
grunt.registerTask('travis', 'test');

// Build
grunt.registerTask('build', ['clean', 'generateinit', 'requirejs', 'copy', 'clean:postbuild', 'stripdefine', 'uglify', 'jshint']);
Expand Down

0 comments on commit ff64dae

Please sign in to comment.