Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const makeHooks = (): IAutoHooks => ({
beforeRun: new SyncHook(['config']),
modifyConfig: new SyncWaterfallHook(['config']),
beforeShipIt: new SyncHook(),
afterAddToChangelog: new AsyncSeriesHook(['context']),
beforeCommitChangelog: new AsyncSeriesHook(['context']),
afterShipIt: new AsyncParallelHook(['version', 'commits', 'context']),
afterRelease: new AsyncParallelHook(['releaseInfo']),
onCreateRelease: new SyncHook(['options']),
onCreateChangelog: new SyncHook(['changelog', 'version']),
onCreateLogParse: new SyncHook(['logParse']),
getAuthor: new AsyncSeriesBailHook(),
getPreviousVersion: new AsyncSeriesBailHook(),
getRepository: new AsyncSeriesBailHook(),
version: new AsyncParallelHook(['version']),
afterVersion: new AsyncParallelHook(),
publish: new AsyncParallelHook(['version']),
afterPublish: new AsyncParallelHook(),
canary: new AsyncSeriesBailHook(['canaryVersion', 'postFix']),
next: new AsyncSeriesWaterfallHook(['preReleaseVersions', 'bump'])
});
export const makeLogParseHooks = (): ILogParseHooks => ({
parseCommit: new AsyncSeriesWaterfallHook(['commit']),
omitCommit: new AsyncSeriesBailHook(['commit'])
});
export const makeChangelogHooks = (): IChangelogHooks => ({
addToBody: new AsyncSeriesWaterfallHook(['notes', 'commits']),
renderChangelogLine: new AsyncSeriesWaterfallHook(['lineData']),
renderChangelogTitle: new AsyncSeriesBailHook(['commits', 'lineRender']),
renderChangelogAuthor: new AsyncSeriesBailHook([
'author',
'commit',
'options'
]),
renderChangelogAuthorLine: new AsyncSeriesBailHook(['author', 'user']),
omitReleaseNotes: new AsyncSeriesBailHook(['commit'])
});
export const makeChangelogHooks = (): IChangelogHooks => ({
addToBody: new AsyncSeriesWaterfallHook(['notes', 'commits']),
renderChangelogLine: new AsyncSeriesWaterfallHook(['lineData']),
renderChangelogTitle: new AsyncSeriesBailHook(['commits', 'lineRender']),
renderChangelogAuthor: new AsyncSeriesBailHook([
'author',
'commit',
'options'
]),
renderChangelogAuthorLine: new AsyncSeriesBailHook(['author', 'user']),
omitReleaseNotes: new AsyncSeriesBailHook(['commit'])
});
export const makeChangelogHooks = (): IChangelogHooks => ({
addToBody: new AsyncSeriesWaterfallHook(['notes', 'commits']),
renderChangelogLine: new AsyncSeriesWaterfallHook(['lineData']),
renderChangelogTitle: new AsyncSeriesBailHook(['commits', 'lineRender']),
renderChangelogAuthor: new AsyncSeriesBailHook([
'author',
'commit',
'options'
]),
renderChangelogAuthorLine: new AsyncSeriesBailHook(['author', 'user']),
omitReleaseNotes: new AsyncSeriesBailHook(['commit'])
});
beforeShipIt: new SyncHook(),
afterAddToChangelog: new AsyncSeriesHook(['context']),
beforeCommitChangelog: new AsyncSeriesHook(['context']),
afterShipIt: new AsyncParallelHook(['version', 'commits', 'context']),
afterRelease: new AsyncParallelHook(['releaseInfo']),
onCreateRelease: new SyncHook(['options']),
onCreateChangelog: new SyncHook(['changelog', 'version']),
onCreateLogParse: new SyncHook(['logParse']),
getAuthor: new AsyncSeriesBailHook(),
getPreviousVersion: new AsyncSeriesBailHook(),
getRepository: new AsyncSeriesBailHook(),
version: new AsyncParallelHook(['version']),
afterVersion: new AsyncParallelHook(),
publish: new AsyncParallelHook(['version']),
afterPublish: new AsyncParallelHook(),
canary: new AsyncSeriesBailHook(['canaryVersion', 'postFix']),
next: new AsyncSeriesWaterfallHook(['preReleaseVersions', 'bump'])
});
export const makeHooks = (): IAutoHooks => ({
beforeRun: new SyncHook(['config']),
modifyConfig: new SyncWaterfallHook(['config']),
beforeShipIt: new SyncHook(),
afterAddToChangelog: new AsyncSeriesHook(['context']),
beforeCommitChangelog: new AsyncSeriesHook(['context']),
afterShipIt: new AsyncParallelHook(['version', 'commits', 'context']),
afterRelease: new AsyncParallelHook(['releaseInfo']),
onCreateRelease: new SyncHook(['options']),
onCreateChangelog: new SyncHook(['changelog', 'version']),
onCreateLogParse: new SyncHook(['logParse']),
getAuthor: new AsyncSeriesBailHook(),
getPreviousVersion: new AsyncSeriesBailHook(),
getRepository: new AsyncSeriesBailHook(),
version: new AsyncParallelHook(['version']),
afterVersion: new AsyncParallelHook(),
publish: new AsyncParallelHook(['version']),
afterPublish: new AsyncParallelHook(),
canary: new AsyncSeriesBailHook(['canaryVersion', 'postFix']),
next: new AsyncSeriesWaterfallHook(['preReleaseVersions', 'bump'])
});
export const makeHooks = (): IAutoHooks => ({
beforeRun: new SyncHook(['config']),
modifyConfig: new SyncWaterfallHook(['config']),
beforeShipIt: new SyncHook(),
afterAddToChangelog: new AsyncSeriesHook(['context']),
beforeCommitChangelog: new AsyncSeriesHook(['context']),
afterShipIt: new AsyncParallelHook(['version', 'commits', 'context']),
afterRelease: new AsyncParallelHook(['releaseInfo']),
onCreateRelease: new SyncHook(['options']),
onCreateChangelog: new SyncHook(['changelog', 'version']),
onCreateLogParse: new SyncHook(['logParse']),
getAuthor: new AsyncSeriesBailHook(),
getPreviousVersion: new AsyncSeriesBailHook(),
getRepository: new AsyncSeriesBailHook(),
version: new AsyncParallelHook(['version']),
afterVersion: new AsyncParallelHook(),
publish: new AsyncParallelHook(['version']),
afterPublish: new AsyncParallelHook(),
canary: new AsyncSeriesBailHook(['canaryVersion', 'postFix']),
next: new AsyncSeriesWaterfallHook(['preReleaseVersions', 'bump'])
});
export const makeReleaseHooks = (): IReleaseHooks => ({
onCreateChangelog: new SyncHook(['changelog', 'version']),
createChangelogTitle: new AsyncSeriesBailHook([]),
onCreateLogParse: new SyncHook(['logParse'])
});
export const makeChangelogHooks = (): IChangelogHooks => ({
addToBody: new AsyncSeriesWaterfallHook(['notes', 'commits']),
renderChangelogLine: new AsyncSeriesWaterfallHook(['lineData']),
renderChangelogTitle: new AsyncSeriesBailHook(['commits', 'lineRender']),
renderChangelogAuthor: new AsyncSeriesBailHook([
'author',
'commit',
'options'
]),
renderChangelogAuthorLine: new AsyncSeriesBailHook(['author', 'user']),
omitReleaseNotes: new AsyncSeriesBailHook(['commit'])
});