Skip to content

Commit 03a1542

Browse files
committed
Updated method call to use the returned promise.
Updated packages.
1 parent de3db5d commit 03a1542

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![](https://david-dm.org/neogeek/grunt-doxdox.svg)](https://david-dm.org/neogeek/grunt-doxdox/) [![](http://img.shields.io/npm/v/grunt-doxdox.svg)](https://www.npmjs.org/package/grunt-doxdox)
1+
[![](https://david-dm.org/neogeek/grunt-doxdox.svg?style=flat)](https://david-dm.org/neogeek/grunt-doxdox/) [![](http://img.shields.io/npm/v/grunt-doxdox.svg?style=flat)](https://www.npmjs.org/package/grunt-doxdox)
22

33
#grunt-doxdox
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.3",
55
"license": "MIT",
66
"dependencies": {
7-
"doxdox": "0.0.13",
7+
"doxdox": "0.0.16",
88
"extend": "2.0.0"
99
},
1010
"keywords": [

tasks/doxdox.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = function (grunt) {
88

99
grunt.registerMultiTask('doxdox', 'Generate documentation with doxdox.', function () {
1010

11-
var input,
11+
var done = this.async(),
12+
input,
1213
output,
1314
config = {
1415
title: '',
@@ -59,9 +60,14 @@ module.exports = function (grunt) {
5960

6061
doxdox.parseInput(
6162
path.normalize(path.resolve(input)),
62-
path.normalize(path.resolve(output)),
6363
config
64-
);
64+
).then(function (content) {
65+
66+
fs.writeFileSync(output, content, 'utf8');
67+
68+
done();
69+
70+
});
6571

6672
} else {
6773

0 commit comments

Comments
 (0)