ember-cli-yuidoc
Advanced tools
Comparing version
@@ -7,2 +7,10 @@ 'use strict'; | ||
function defaultOption(options, name, defaultValue) { | ||
if (!options) { | ||
return defaultValue; | ||
} | ||
return options.hasOwnProperty(name) ? options[name] : defaultValue; | ||
} | ||
module.exports = { | ||
@@ -42,6 +50,6 @@ generate: function generateYuidocOptions(){ | ||
yuidoc: { | ||
linkNatives: yuidocOptions.linkNatives || true, | ||
quiet: yuidocOptions.quiet || true, | ||
parseOnly: yuidocOptions.parseOnly || false, | ||
lint: yuidocOptions.lint || false, | ||
linkNatives: defaultOption(yuidocOptions, 'linkNatives', true), | ||
quiet: defaultOption(yuidocOptions, 'quiet', true), | ||
parseOnly: defaultOption(yuidocOptions, 'parseOnly', false), | ||
lint: defaultOption(yuidocOptions, 'lint', false), | ||
exclude: exclusions.join(',') | ||
@@ -48,0 +56,0 @@ } |
{ | ||
"name": "ember-cli-yuidoc", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Generate documentation of your app/addon from your yuidoc comments", | ||
@@ -37,6 +37,7 @@ "directories": { | ||
"ember-cli-qunit": "0.3.10", | ||
"ember-cli-release": "0.2.4", | ||
"ember-cli-uglify": "1.0.1", | ||
"ember-data": "1.0.0-beta.16.1", | ||
"ember-disable-prototype-extensions": "^1.0.0", | ||
"ember-export-application-global": "^1.0.2", | ||
"ember-disable-prototype-extensions": "^1.0.0", | ||
"ember-try": "0.0.4" | ||
@@ -51,2 +52,2 @@ }, | ||
} | ||
} | ||
} |
10517
8.73%13
8.33%168
17.48%15
7.14%