Skip to content

Commit 0ea1564

Browse files
nealormsbeeKocal
authored andcommitted
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
1 parent 4f4d0f3 commit 0ea1564

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ test_script:
3333
- yarn lint
3434
- yarn test -i
3535
- yarn codecov
36-
- yarn cypress run --config watchForFileChanges=false --record
36+
- yarn cypress run --config watchForFileChanges=false

config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
const config = require('jsdoc/env');
1+
const env = require('jsdoc/env');
22
const getTemplatePath = require('./lib/core/getTemplatePath');
33

4+
const config = env.conf || {};
5+
46
config['jsdoc-vuejs'] = config['jsdoc-vuejs'] || {};
57

68
// Detect JSDoc template if not specified
79
if (!Object.prototype.hasOwnProperty.call(config['jsdoc-vuejs'], 'template')) {
8-
config['jsdoc-vuejs'].template = getTemplatePath(config.opts.template || 'default');
10+
config['jsdoc-vuejs'].template = getTemplatePath(env.opts.template || 'default');
911
}
1012

1113
module.exports = config;

0 commit comments

Comments
 (0)