UNPKG

1.92 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tapable_1 = require("tapable");
4exports.makeHooks = function () { return ({
5 beforeRun: new tapable_1.SyncHook(['config']),
6 modifyConfig: new tapable_1.SyncWaterfallHook(['config']),
7 beforeShipIt: new tapable_1.SyncHook([]),
8 afterShipIt: new tapable_1.AsyncParallelHook(['version', 'commits']),
9 afterRelease: new tapable_1.AsyncParallelHook(['version', 'commits']),
10 onCreateRelease: new tapable_1.SyncHook(['options']),
11 onCreateChangelog: new tapable_1.SyncHook(['changelog']),
12 onCreateLogParse: new tapable_1.SyncHook(['logParse']),
13 getAuthor: new tapable_1.AsyncSeriesBailHook([]),
14 getPreviousVersion: new tapable_1.AsyncSeriesBailHook(['prefixRelease']),
15 getRepository: new tapable_1.AsyncSeriesBailHook([]),
16 version: new tapable_1.AsyncParallelHook(['version']),
17 afterVersion: new tapable_1.AsyncParallelHook([]),
18 publish: new tapable_1.AsyncParallelHook(['version']),
19 afterPublish: new tapable_1.AsyncParallelHook([])
20}); };
21exports.makeReleaseHooks = function () { return ({
22 onCreateChangelog: new tapable_1.SyncHook(['changelog']),
23 onCreateLogParse: new tapable_1.SyncHook(['logParse'])
24}); };
25exports.makeLogParseHooks = function () { return ({
26 parseCommit: new tapable_1.AsyncSeriesWaterfallHook(['commit']),
27 omitCommit: new tapable_1.AsyncSeriesBailHook(['commit'])
28}); };
29exports.makeChangelogHooks = function () { return ({
30 renderChangelogLine: new tapable_1.AsyncSeriesBailHook(['commits', 'lineRender']),
31 renderChangelogTitle: new tapable_1.AsyncSeriesBailHook(['commits', 'lineRender']),
32 renderChangelogAuthor: new tapable_1.AsyncSeriesBailHook([
33 'author',
34 'commit',
35 'options'
36 ]),
37 renderChangelogAuthorLine: new tapable_1.AsyncSeriesBailHook(['author', 'user'])
38}); };
39//# sourceMappingURL=make-hooks.js.map
\No newline at end of file