1 | 'use strict'
|
2 | const conventionalChangelog = require('./conventional-changelog')
|
3 | const parserOpts = require('./parser-opts')
|
4 | const recommendedBumpOpts = require('./conventional-recommended-bump')
|
5 | const writerOpts = require('./writer-opts')
|
6 |
|
7 | module.exports = presetOpts
|
8 |
|
9 | function presetOpts (cb) {
|
10 | Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
|
11 | .then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => {
|
12 | cb(null, {
|
13 | gitRawCommitsOpts: {
|
14 | noMerges: null
|
15 | },
|
16 | conventionalChangelog,
|
17 | parserOpts,
|
18 | recommendedBumpOpts,
|
19 | writerOpts
|
20 | })
|
21 | })
|
22 | }
|