Skip to content

Commit e58bcfa

Browse files
Narretzpetebacondarwin
authored andcommitted
chore(grunt): increase task readability
1 parent 4015e0f commit e58bcfa

File tree

1 file changed

+60
-11
lines changed

1 file changed

+60
-11
lines changed

Gruntfile.js

+60-11
Original file line numberDiff line numberDiff line change
@@ -358,24 +358,73 @@ module.exports = function(grunt) {
358358
});
359359

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

0 commit comments

Comments
 (0)