Skip to content

Commit 2a4f92e

Browse files
chore(grunt): add jscs task to test task
It is too easy to forget to check jscs for things like trailing whitespace before pushing commits, such as simple doc changes. This then breaks the build and is messy. Adding jscs to the test task gives people a slightly better chance of catching these before pushing.
1 parent 47384bc commit 2a4f92e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module.exports = function(grunt) {
279279

280280

281281
//alias tasks
282-
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'package','test:unit','test:promises-aplus', 'tests:docs', 'test:protractor']);
282+
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'jscs', 'package','test:unit','test:promises-aplus', 'tests:docs', 'test:protractor']);
283283
grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);
284284
grunt.registerTask('test:jquery', 'Run the jQuery unit tests with Karma', ['tests:jquery']);
285285
grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', ['tests:modules']);

0 commit comments

Comments
 (0)