Skip to content

Commit 5cd229a

Browse files
committed
Whitespace update.
1 parent 2ac07b5 commit 5cd229a

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

bin/doxdox

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,49 @@ while (args.length) {
2929

3030
case '-t':
3131
case '--title':
32+
3233
config.title = args.shift();
34+
3335
break;
3436

3537
case '-d':
3638
case '--description':
39+
3740
config.description = args.shift();
41+
3842
break;
3943

4044
case '-l':
4145
case '--layout':
46+
4247
config.layout = args.shift();
48+
4349
break;
4450

4551
case '-p':
4652
case '--package':
53+
4754
pkg = args.shift();
55+
4856
break;
4957

5058
case '-o':
5159
case '--output':
60+
5261
output = args.shift();
62+
5363
break;
5464

5565
case '-v':
5666
case '--version':
67+
5768
process.stdout.write(require('../package').version + '\n');
5869
process.kill();
70+
5971
break;
6072

6173
default:
74+
6275
process.stdout.write('\n');
6376
process.stdout.write(chalk.blue(' Usage:') + ' doxdox <path> [options]' + '\n\n');
6477
process.stdout.write(' Options:' + '\n\n');
@@ -75,6 +88,7 @@ while (args.length) {
7588
process.stdout.write(' - Markdown\t\t (http://daringfireball.net/projects/markdown/)' + '\n');
7689
process.stdout.write('\n');
7790
process.kill();
91+
7892
break;
7993

8094
}

lib/helpers.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,33 @@ module.exports = function (hbs) {
33
var context;
44

55
hbs.registerHelper('ifCond', function (a, b, options) {
6+
67
return a === b ? options.fn(this) : options.inverse(this);
8+
79
});
810

911
hbs.registerHelper('ifCondMatch', function (a, b, options) {
12+
1013
return String(a).match(new RegExp(b, 'i')) ? options.fn(this) : options.inverse(this);
14+
1115
});
1216

1317
hbs.registerHelper('formatName', function (name) {
18+
1419
return String(name).replace(/\.prototype/g, '');
20+
1521
});
1622

1723
hbs.registerHelper('registerContext', function () {
24+
1825
context = this;
26+
1927
});
2028

2129
hbs.registerHelper('registerVariable', function (name, value) {
30+
2231
context[name] = value;
32+
2333
});
2434

2535
};

lib/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,21 @@ module.exports.walk = function (dir, opts) {
5555
var files = [];
5656

5757
if (!opts) {
58+
5859
opts = {};
60+
5961
}
6062

6163
if (!opts.match) {
64+
6265
opts.match = /\.js$/;
66+
6367
}
6468

6569
if (!opts.exception) {
70+
6671
opts.exception = /\.git|\.min|node_modules|bower_components|test|gruntfile|gulpfile/i;
72+
6773
}
6874

6975
if (fs.existsSync(dir) && fs.statSync(dir).isDirectory()) {

0 commit comments

Comments
 (0)