Skip to content

Commit

Permalink
fix: the configuration is now correctly passed to jsdoc-vuejs. (#204)
Browse files Browse the repository at this point in the history
* 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
nealormsbee authored and Kocal committed Mar 27, 2019
1 parent 4f4d0f3 commit 0ea1564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ test_script:
- yarn lint
- yarn test -i
- yarn codecov
- yarn cypress run --config watchForFileChanges=false --record
- yarn cypress run --config watchForFileChanges=false
6 changes: 4 additions & 2 deletions config.js
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;

0 comments on commit 0ea1564

Please sign in to comment.