Skip to content

Commit 8e4849e

Browse files
committed
chore(grunt): increase task readability
1 parent a4ac7d0 commit 8e4849e

File tree

1 file changed

+60
-11
lines changed

1 file changed

+60
-11
lines changed

Gruntfile.js

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -359,24 +359,73 @@ module.exports = function(grunt) {
359359
});
360360

361361
//alias tasks
362-
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['eslint', 'package', 'test:unit', 'test:promises-aplus', 'tests:docs', 'test:protractor']);
362+
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', [
363+
'eslint',
364+
'package',
365+
'test:unit',
366+
'test:promises-aplus',
367+
'tests:docs',
368+
'test:protractor'
369+
]);
363370
grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);
364371
grunt.registerTask('test:jquery', 'Run the jQuery (latest) unit tests with Karma', ['tests:jquery']);
365372
grunt.registerTask('test:jquery-2.2', 'Run the jQuery 2.2 unit tests with Karma', ['tests:jquery-2.2']);
366373
grunt.registerTask('test:jquery-2.1', 'Run the jQuery 2.1 unit tests with Karma', ['tests:jquery-2.1']);
367-
grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', ['build', 'tests:modules']);
374+
grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', [
375+
'build',
376+
'tests:modules'
377+
]);
368378
grunt.registerTask('test:docs', 'Run the doc-page tests with Karma', ['package', 'tests:docs']);
369-
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['test:jqlite', 'test:jquery', 'test:jquery-2.2', 'test:jquery-2.1', 'test:modules']);
370-
grunt.registerTask('test:protractor', 'Run the end to end tests with Protractor and keep a test server running in the background', ['webdriver', 'connect:testserver', 'protractor:normal']);
371-
grunt.registerTask('test:travis-protractor', 'Run the end to end tests with Protractor for Travis CI builds', ['connect:testserver', 'protractor:travis']);
372-
grunt.registerTask('test:ci-protractor', 'Run the end to end tests with Protractor for Jenkins CI builds', ['webdriver', 'connect:testserver', 'protractor:jenkins']);
379+
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', [
380+
'test:jqlite',
381+
'test:jquery',
382+
'test:jquery-2.2',
383+
'test:jquery-2.1',
384+
'test:modules'
385+
]);
386+
grunt.registerTask('test:protractor', 'Run the end to end tests with Protractor and keep a test server running in the background', [
387+
'webdriver',
388+
'connect:testserver',
389+
'protractor:normal'
390+
]);
391+
grunt.registerTask('test:travis-protractor', 'Run the end to end tests with Protractor for Travis CI builds', [
392+
'connect:testserver',
393+
'protractor:travis'
394+
]);
395+
grunt.registerTask('test:ci-protractor', 'Run the end to end tests with Protractor for Jenkins CI builds', [
396+
'webdriver',
397+
'connect:testserver',
398+
'protractor:jenkins'
399+
]);
373400
grunt.registerTask('test:e2e', 'Alias for test:protractor', ['test:protractor']);
374-
grunt.registerTask('test:promises-aplus',['build:promises-aplus-adapter', 'shell:promises-aplus-tests']);
375-
376-
grunt.registerTask('minify', ['bower', 'clean', 'build', 'minall']);
401+
grunt.registerTask('test:promises-aplus',[
402+
'build:promises-aplus-adapter',
403+
'shell:promises-aplus-tests'
404+
]);
405+
grunt.registerTask('minify', [
406+
'bower',
407+
'clean',
408+
'build',
409+
'minall'
410+
]);
377411
grunt.registerTask('webserver', ['connect:devserver']);
378-
grunt.registerTask('package', ['bower', 'validate-angular-files', 'clean', 'buildall', 'minall', 'collect-errors', 'write', 'docs', 'copy', 'compress']);
379-
grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict', 'eslint']);
412+
grunt.registerTask('package', [
413+
'bower',
414+
'validate-angular-files',
415+
'clean',
416+
'buildall',
417+
'minall',
418+
'collect-errors',
419+
'write',
420+
'docs',
421+
'copy',
422+
'compress'
423+
]);
424+
grunt.registerTask('ci-checks', [
425+
'ddescribe-iit',
426+
'merge-conflict',
427+
'eslint'
428+
]);
380429
grunt.registerTask('default', ['package']);
381430
};
382431

0 commit comments

Comments
 (0)