Skip to content

Commit

Permalink
chore: add descriptions to Grunt tasks (#459)
Browse files Browse the repository at this point in the history
Closes #364
  • Loading branch information
marcysutton authored and WilcoFiers committed Jul 31, 2017
1 parent d02dba3 commit 93a0273
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 9 deletions.
4 changes: 3 additions & 1 deletion build/tasks/add-locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
var buildManual = require('../build-manual');

module.exports = function (grunt) {
grunt.registerMultiTask('add-locale', function () {
grunt.registerMultiTask('add-locale',
'Task for localizing messages in rules and checks',
function () {
var options = this.options({
rules: ['lib/rules/**/*.json'],
checks: ['lib/checks/**/*.json'],
Expand Down
5 changes: 3 additions & 2 deletions build/tasks/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
'use strict';
var buildRules = require('../configure');
module.exports = function (grunt) {
grunt.registerMultiTask('configure', function () {

grunt.registerMultiTask('configure',
'Task for configuring rules and checks',
function () {
var done = this.async();
var options = this.options({
rules: ['lib/rules/**/*.json'],
Expand Down
4 changes: 3 additions & 1 deletion build/tasks/fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
'use strict';

module.exports = function (grunt) {
grunt.registerMultiTask('fixture', function () {
grunt.registerMultiTask('fixture',
'Task for generating HTML test fixtures from a common template',
function () {
var options = this.options({
fixture: 'test/runner.tmpl',
testCwd: 'test/core',
Expand Down
4 changes: 3 additions & 1 deletion build/tasks/langs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ module.exports = function (grunt) {
].join('');
grunt.file.write(path, template);
}
grunt.registerMultiTask('langs', function () {
grunt.registerMultiTask('langs',
'Task for generating commons language codes from IANA registry',
function () {
var done = this.async();
var ianaLangsURL = 'http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry';
if (!this.data.check) {
Expand Down
4 changes: 3 additions & 1 deletion build/tasks/test-webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ module.exports = function (grunt) {
/**
* Run all tests in a browser using webdriver
*/
grunt.registerMultiTask('test-webdriver', function () {
grunt.registerMultiTask('test-webdriver',
'Task for launching Webdriver with options and running tests against options URLs',
function () {
var driver;
var done = this.async();
var options = this.options({
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/testconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module.exports = function (grunt) {
grunt.registerMultiTask('testconfig',
'This task creates a file with all the source test config and HTML fixutres in a single JS object "test"',
'This task creates a file with all the source test config and HTML fixtures in a single JS object `tests`',
function () {

var result = {
Expand Down
4 changes: 3 additions & 1 deletion build/tasks/update-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
'use strict';

module.exports = function (grunt) {
grunt.registerMultiTask('update-help', function () {
grunt.registerMultiTask('update-help',
'Task for updating Deque University helpUrls based on rule JSON files',
function () {
var options = this.options({
version: '1.0.0'
});
Expand Down
4 changes: 3 additions & 1 deletion build/tasks/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ function validateFiles(grunt, files, schema) {
}

module.exports = function (grunt) {
grunt.registerMultiTask('validate', function () {
grunt.registerMultiTask('validate',
'Task for validating API schema for tools, checks and rules',
function () {
var schemas = createSchemas();
var options = this.options();
if (!options.type || !schemas[options.type]) {
Expand Down

0 comments on commit 93a0273

Please sign in to comment.