-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: the configuration is now correctly passed to jsdoc-vuejs. (#204)
* Tweaked config.js to parse config passed into jsdoc-vuejs correctly. * Adjusted to fix linting error * chore(appveyor): don't record Cypress tests anymore
- Loading branch information
1 parent
4f4d0f3
commit 0ea1564
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
const config = require('jsdoc/env'); | ||
const env = require('jsdoc/env'); | ||
const getTemplatePath = require('./lib/core/getTemplatePath'); | ||
|
||
const config = env.conf || {}; | ||
|
||
config['jsdoc-vuejs'] = config['jsdoc-vuejs'] || {}; | ||
|
||
// Detect JSDoc template if not specified | ||
if (!Object.prototype.hasOwnProperty.call(config['jsdoc-vuejs'], 'template')) { | ||
config['jsdoc-vuejs'].template = getTemplatePath(config.opts.template || 'default'); | ||
config['jsdoc-vuejs'].template = getTemplatePath(env.opts.template || 'default'); | ||
} | ||
|
||
module.exports = config; |