1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var tapable_1 = require("tapable");
|
4 | exports.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(['releaseInfo']),
|
10 | onCreateRelease: new tapable_1.SyncHook(['options']),
|
11 | onCreateChangelog: new tapable_1.SyncHook(['changelog', 'version']),
|
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 | canary: new tapable_1.AsyncSeriesBailHook(['canaryVersion', 'postFix'])
|
21 | }); };
|
22 | exports.makeReleaseHooks = function () { return ({
|
23 | onCreateChangelog: new tapable_1.SyncHook(['changelog', 'version']),
|
24 | createChangelogTitle: new tapable_1.AsyncSeriesBailHook([]),
|
25 | onCreateLogParse: new tapable_1.SyncHook(['logParse'])
|
26 | }); };
|
27 | exports.makeLogParseHooks = function () { return ({
|
28 | parseCommit: new tapable_1.AsyncSeriesWaterfallHook(['commit']),
|
29 | omitCommit: new tapable_1.AsyncSeriesBailHook(['commit'])
|
30 | }); };
|
31 | exports.makeChangelogHooks = function () { return ({
|
32 | renderChangelogLine: new tapable_1.AsyncSeriesWaterfallHook(['lineData']),
|
33 | renderChangelogTitle: new tapable_1.AsyncSeriesBailHook(['commits', 'lineRender']),
|
34 | renderChangelogAuthor: new tapable_1.AsyncSeriesBailHook([
|
35 | 'author',
|
36 | 'commit',
|
37 | 'options'
|
38 | ]),
|
39 | renderChangelogAuthorLine: new tapable_1.AsyncSeriesBailHook(['author', 'user']),
|
40 | omitReleaseNotes: new tapable_1.AsyncSeriesBailHook(['commit'])
|
41 | }); };
|
42 |
|
\ | No newline at end of file |