16 lines
578 B
JavaScript
16 lines
578 B
JavaScript
'use strict'
|
|
const Q = require('q')
|
|
const conventionalChangelog = require('./conventional-changelog')
|
|
const parserOpts = require('./parser-opts')
|
|
const recommendedBumpOpts = require('./conventional-recommended-bump')
|
|
const writerOpts = require('./writer-opts')
|
|
|
|
module.exports = presetOpts
|
|
|
|
function presetOpts (cb) {
|
|
Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
|
|
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
|
|
cb(null, { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts })
|
|
})
|
|
}
|