gulp-typedoc
Advanced tools
Comparing version 2.0.1 to 2.0.2
28
index.js
@@ -53,19 +53,25 @@ // Copyright (c) 2015 Rogier Schouten <rogier.schouten@gmail.com> | ||
} | ||
var src = app.expandInputFiles(files); | ||
var project = app.convert(src); | ||
if (project) { | ||
if (out) app.generateDocs(project, out); | ||
if (json) app.generateJson(project, json); | ||
if (app.logger.hasErrors()) { | ||
stream.emit("error", new PluginError(PLUGIN_NAME, "There were errors generating TypeDoc output, see above.")); | ||
try { | ||
var src = app.expandInputFiles(files); | ||
var project = app.convert(src); | ||
if (project) { | ||
if (out) app.generateDocs(project, out); | ||
if (json) app.generateJson(project, json); | ||
if (app.logger.hasErrors()) { | ||
stream.emit("error", new PluginError(PLUGIN_NAME, "There were errors generating TypeDoc output, see above.")); | ||
stream.emit("end"); | ||
return; | ||
} | ||
} else { | ||
stream.emit("error", new PluginError(PLUGIN_NAME, "Failed to generate load TypeDoc project.")); | ||
stream.emit("end"); | ||
return; | ||
} | ||
} else { | ||
stream.emit("error", new PluginError(PLUGIN_NAME, "Failed to generate load TypeDoc project.")); | ||
stream.emit("end"); | ||
return; | ||
} catch (e) { | ||
stream.emit("error", e); | ||
stream.emit("end"); | ||
return; | ||
} | ||
stream.emit("end"); | ||
return; | ||
} | ||
@@ -72,0 +78,0 @@ }); |
{ | ||
"name": "gulp-typedoc", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Gulp plugin for the TypeDoc typescript documentation tool.", | ||
@@ -20,12 +20,13 @@ "repository": { | ||
"name": "Rogier Schouten", | ||
"email": "r.schouten@spiritit.com" | ||
"url": "https://github.com/rogierschouten/", | ||
"email": "github@workingcode.ninja" | ||
}, | ||
"license": "ISC", | ||
"dependencies": { | ||
"event-stream": "^3.3.2", | ||
"gulp-util": "^3.0.7" | ||
"event-stream": "^3.3.4", | ||
"gulp-util": "^3.0.8" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"rimraf": "^2.5.2" | ||
"rimraf": "^2.5.4" | ||
}, | ||
@@ -32,0 +33,0 @@ "peerDependencies": { |
@@ -60,2 +60,6 @@ # Gulp-TypeDoc | ||
### 2.0.2 | ||
* Catch any synchronous exceptions from typedoc | ||
### 2.0.1 | ||
@@ -62,0 +66,0 @@ |
8513
145
111
Updatedevent-stream@^3.3.4
Updatedgulp-util@^3.0.8