UNPKG

5.34 kBTypeScriptView Raw
1declare module '@qiwi/semantic-release-gh-pages-plugin' {
2 /** */
3 export * from '@qiwi/semantic-release-gh-pages-plugin/target/es6';
4}
5// Generated by dts-bundle v0.7.5
6// Dependencies for this module:
7// ../../../../../../home/runner/work/semantic-release-gh-pages-plugin/semantic-release-gh-pages-plugin/semantic-release
8
9declare module '@qiwi/semantic-release-gh-pages-plugin/target/es6' {
10 /** @module semantic-release-gh-pages-plugin */
11 import { TContext } from '@qiwi/semantic-release-gh-pages-plugin/target/es6/interface';
12 export * from '@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults';
13 export const verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
14 export const publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
15 const _default: {
16 verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
17 publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
18 };
19 export default _default;
20}
21
22declare module '@qiwi/semantic-release-gh-pages-plugin/target/es6/interface' {
23 /** @module semantic-release-gh-pages-plugin */
24 import { BranchSpec, Context } from 'semantic-release';
25 export interface ILogger {
26 log: (message: string, ...vars: any[]) => void;
27 error: (message: string, ...vars: any[]) => void;
28 }
29 export type TAnyMap = {
30 [key: string]: any;
31 };
32 export type TStringMap = {
33 [key: string]: string;
34 };
35 export type TContext = Context & {
36 env: TStringMap;
37 branch?: Exclude<BranchSpec, string>;
38 cwd: string;
39 options: TAnyMap & {
40 publish?: Array<any>;
41 verifyConditions?: Array<any>;
42 };
43 };
44 export interface IGhpagesPluginConfig {
45 src: string;
46 dst: string;
47 ciBranch: string;
48 docsBranch: string;
49 pullTagsBranch?: string;
50 msg: string;
51 repo: string;
52 token?: string;
53 enterprise?: boolean;
54 dotfiles?: boolean;
55 add?: boolean;
56 }
57 export interface IPushOpts extends IGhpagesPluginConfig {
58 message: string;
59 logger: ILogger;
60 env: TAnyMap;
61 cwd: string;
62 }
63}
64
65declare module '@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults' {
66 /** @module semantic-release-gh-pages-plugin */
67 export const PLUGIN_PATH = "@qiwi/semantic-release-gh-pages-plugin";
68 export const DEFAULT_BRANCH = "gh-pages";
69 export const DEFAULT_SRC = "docs";
70 export const DEFAULT_DST = ".";
71 export const DEFAULT_MSG = "docs updated <%= nextRelease.gitTag %>";
72 export const DEFAULT_ENTERPRISE = false;
73 export const DEFAULT_PULL_TAGS_BRANCH = "master";
74}
75
76// Generated by dts-bundle v0.7.5
77// Dependencies for this module:
78// ../../../../../../home/runner/work/semantic-release-gh-pages-plugin/semantic-release-gh-pages-plugin/semantic-release
79
80declare module '@qiwi/semantic-release-gh-pages-plugin/target/es5' {
81 /** @module semantic-release-gh-pages-plugin */
82 import { TContext } from '@qiwi/semantic-release-gh-pages-plugin/target/es5/interface';
83 export * from '@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults';
84 export const verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
85 export const publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
86 const _default: {
87 verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
88 publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
89 };
90 export default _default;
91}
92
93declare module '@qiwi/semantic-release-gh-pages-plugin/target/es5/interface' {
94 /** @module semantic-release-gh-pages-plugin */
95 import { BranchSpec, Context } from 'semantic-release';
96 export interface ILogger {
97 log: (message: string, ...vars: any[]) => void;
98 error: (message: string, ...vars: any[]) => void;
99 }
100 export type TAnyMap = {
101 [key: string]: any;
102 };
103 export type TStringMap = {
104 [key: string]: string;
105 };
106 export type TContext = Context & {
107 env: TStringMap;
108 branch?: Exclude<BranchSpec, string>;
109 cwd: string;
110 options: TAnyMap & {
111 publish?: Array<any>;
112 verifyConditions?: Array<any>;
113 };
114 };
115 export interface IGhpagesPluginConfig {
116 src: string;
117 dst: string;
118 ciBranch: string;
119 docsBranch: string;
120 pullTagsBranch?: string;
121 msg: string;
122 repo: string;
123 token?: string;
124 enterprise?: boolean;
125 dotfiles?: boolean;
126 add?: boolean;
127 }
128 export interface IPushOpts extends IGhpagesPluginConfig {
129 message: string;
130 logger: ILogger;
131 env: TAnyMap;
132 cwd: string;
133 }
134}
135
136declare module '@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults' {
137 /** @module semantic-release-gh-pages-plugin */
138 export const PLUGIN_PATH = "@qiwi/semantic-release-gh-pages-plugin";
139 export const DEFAULT_BRANCH = "gh-pages";
140 export const DEFAULT_SRC = "docs";
141 export const DEFAULT_DST = ".";
142 export const DEFAULT_MSG = "docs updated <%= nextRelease.gitTag %>";
143 export const DEFAULT_ENTERPRISE = false;
144 export const DEFAULT_PULL_TAGS_BRANCH = "master";
145}
146