@qiwi/semantic-release-gh-pages-plugin

  • Version 5.3.0
  • Published
  • 97.3 kB
  • 11 dependencies
  • MIT license

Install

npm i @qiwi/semantic-release-gh-pages-plugin
yarn add @qiwi/semantic-release-gh-pages-plugin
pnpm add @qiwi/semantic-release-gh-pages-plugin

Overview

gh-pages publishing plugin for semantic-release

Index

Namespaces

Namespaces

namespace @qiwi/semantic-release-gh-pages-plugin

module '@qiwi/semantic-release-gh-pages-plugin' {}

    variable DEFAULT_BRANCH

    const DEFAULT_BRANCH: string;

      variable DEFAULT_DST

      const DEFAULT_DST: string;

        variable DEFAULT_ENTERPRISE

        const DEFAULT_ENTERPRISE: boolean;

          variable DEFAULT_MSG

          const DEFAULT_MSG: string;

            variable DEFAULT_PATTERN

            const DEFAULT_PATTERN: string;

              variable DEFAULT_PULL_TAGS_BRANCH

              const DEFAULT_PULL_TAGS_BRANCH: string;

                variable DEFAULT_SRC

                const DEFAULT_SRC: string;

                  variable PLUGIN_PATH

                  const PLUGIN_PATH: string;
                  • semantic-release-gh-pages-plugin

                  function publish

                  publish: (pluginConfig: any, context: TContext) => Promise<unknown>;

                    function verifyConditions

                    verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;

                      namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/config.js

                      module '@qiwi/semantic-release-gh-pages-plugin/target/es5/config.js' {}

                        variable DEFAULT_BRANCH

                        const DEFAULT_BRANCH: string;

                          variable DEFAULT_DST

                          const DEFAULT_DST: string;

                            variable DEFAULT_ENTERPRISE

                            const DEFAULT_ENTERPRISE: boolean;

                              variable DEFAULT_MSG

                              const DEFAULT_MSG: string;

                                variable DEFAULT_PATTERN

                                const DEFAULT_PATTERN: string;

                                  variable DEFAULT_PULL_TAGS_BRANCH

                                  const DEFAULT_PULL_TAGS_BRANCH: string;

                                    variable DEFAULT_SRC

                                    const DEFAULT_SRC: string;

                                      variable GITIO_REPO_PATTERN

                                      const GITIO_REPO_PATTERN: RegExp;

                                        variable PLUGIN_PATH

                                        const PLUGIN_PATH: string;
                                        • semantic-release-gh-pages-plugin

                                        function extractRepoDomain

                                        extractRepoDomain: (repoUrl: string) => string;

                                        function extractRepoName

                                        extractRepoName: (repoUrl: string) => string;

                                        function extractRepoToken

                                        extractRepoToken: (repoUrl: string) => string;

                                        function getRepoUrl

                                        getRepoUrl: (
                                        pluginConfig: TAnyMap,
                                        context: TContext,
                                        enterprise: boolean
                                        ) => Promise<string>;

                                        function getToken

                                        getToken: (env: TAnyMap, repoUrl: string) => string | undefined;

                                        function getUrlFromPackage

                                        getUrlFromPackage: () => string;

                                        function reassembleRepoUrl

                                        reassembleRepoUrl: (
                                        redirectedUrl: string,
                                        context: TContext
                                        ) => string | undefined;

                                        function resolveConfig

                                        resolveConfig: (
                                        pluginConfig: TAnyMap,
                                        context: TContext,
                                        path?: string,
                                        step?: string
                                        ) => Promise<IGhpagesPluginConfig>;

                                        function resolveOptions

                                        resolveOptions: (
                                        pluginConfig: TAnyMap,
                                        context: TContext,
                                        path?: string,
                                        step?: string
                                        ) => TAnyMap;

                                        namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/defaults.js

                                        module '@qiwi/semantic-release-gh-pages-plugin/target/es5/defaults.js' {}

                                          variable DEFAULT_BRANCH

                                          const DEFAULT_BRANCH: string;

                                            variable DEFAULT_DST

                                            const DEFAULT_DST: string;

                                              variable DEFAULT_ENTERPRISE

                                              const DEFAULT_ENTERPRISE: boolean;

                                                variable DEFAULT_MSG

                                                const DEFAULT_MSG: string;

                                                  variable DEFAULT_PATTERN

                                                  const DEFAULT_PATTERN: string;

                                                    variable DEFAULT_PULL_TAGS_BRANCH

                                                    const DEFAULT_PULL_TAGS_BRANCH: string;

                                                      variable DEFAULT_SRC

                                                      const DEFAULT_SRC: string;

                                                        variable PLUGIN_PATH

                                                        const PLUGIN_PATH: string;
                                                        • semantic-release-gh-pages-plugin

                                                        namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/ghpages.js

                                                        module '@qiwi/semantic-release-gh-pages-plugin/target/es5/ghpages.js' {}

                                                          variable OK

                                                          const OK: { status: string };

                                                          function publish

                                                          publish: (opts: IPushOpts) => Promise<unknown>;

                                                          function pullTags

                                                          pullTags: (opts: IPushOpts) => Promise<any>;

                                                          function pushPages

                                                          pushPages: (opts: IPushOpts) => Promise<unknown>;

                                                          namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/index.js

                                                          module '@qiwi/semantic-release-gh-pages-plugin/target/es5/index.js' {}

                                                            variable _default

                                                            const _default: {
                                                            verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
                                                            publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
                                                            };

                                                              variable DEFAULT_BRANCH

                                                              const DEFAULT_BRANCH: string;

                                                                variable DEFAULT_DST

                                                                const DEFAULT_DST: string;

                                                                  variable DEFAULT_ENTERPRISE

                                                                  const DEFAULT_ENTERPRISE: boolean;

                                                                    variable DEFAULT_MSG

                                                                    const DEFAULT_MSG: string;

                                                                      variable DEFAULT_PATTERN

                                                                      const DEFAULT_PATTERN: string;

                                                                        variable DEFAULT_PULL_TAGS_BRANCH

                                                                        const DEFAULT_PULL_TAGS_BRANCH: string;

                                                                          variable DEFAULT_SRC

                                                                          const DEFAULT_SRC: string;

                                                                            variable PLUGIN_PATH

                                                                            const PLUGIN_PATH: string;
                                                                            • semantic-release-gh-pages-plugin

                                                                            function publish

                                                                            publish: (pluginConfig: any, context: TContext) => Promise<unknown>;

                                                                              function verifyConditions

                                                                              verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;

                                                                                namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js

                                                                                module '@qiwi/semantic-release-gh-pages-plugin/target/es5/interface.js' {}

                                                                                  interface IGhpagesPluginConfig

                                                                                  interface IGhpagesPluginConfig {}

                                                                                    property add

                                                                                    add?: boolean;

                                                                                      property ciBranch

                                                                                      ciBranch: string;

                                                                                        property docsBranch

                                                                                        docsBranch: string;

                                                                                          property dotfiles

                                                                                          dotfiles?: boolean;

                                                                                            property dst

                                                                                            dst: string;

                                                                                              property enterprise

                                                                                              enterprise?: boolean;

                                                                                                property msg

                                                                                                msg: string;

                                                                                                  property pattern

                                                                                                  pattern?: string;

                                                                                                    property pullTagsBranch

                                                                                                    pullTagsBranch?: string;

                                                                                                      property repo

                                                                                                      repo: string;

                                                                                                        property src

                                                                                                        src: string;

                                                                                                          property token

                                                                                                          token?: string;

                                                                                                            interface ILogger

                                                                                                            interface ILogger {}

                                                                                                              property error

                                                                                                              error: (message: string, ...vars: any[]) => void;

                                                                                                                property log

                                                                                                                log: (message: string, ...vars: any[]) => void;

                                                                                                                  interface IPushOpts

                                                                                                                  interface IPushOpts extends IGhpagesPluginConfig {}

                                                                                                                    property cwd

                                                                                                                    cwd: string;

                                                                                                                      property env

                                                                                                                      env: TAnyMap;

                                                                                                                        property logger

                                                                                                                        logger: ILogger;

                                                                                                                          property message

                                                                                                                          message: string;

                                                                                                                            type TAnyMap

                                                                                                                            type TAnyMap = {
                                                                                                                            [key: string]: any;
                                                                                                                            };

                                                                                                                              type TContext

                                                                                                                              type TContext = Context & {
                                                                                                                              env: TStringMap;
                                                                                                                              branch?: Exclude<BranchSpec, string>;
                                                                                                                              cwd: string;
                                                                                                                              options: TAnyMap & {
                                                                                                                              publish?: Array<any>;
                                                                                                                              verifyConditions?: Array<any>;
                                                                                                                              };
                                                                                                                              };

                                                                                                                                type TStringMap

                                                                                                                                type TStringMap = {
                                                                                                                                [key: string]: string;
                                                                                                                                };

                                                                                                                                  namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/tpl.js

                                                                                                                                  module '@qiwi/semantic-release-gh-pages-plugin/target/es5/tpl.js' {}

                                                                                                                                    function render

                                                                                                                                    render: (template: string, context: TAnyMap, logger: ILogger) => string;

                                                                                                                                    namespace @qiwi/semantic-release-gh-pages-plugin/target/es5/util.js

                                                                                                                                    module '@qiwi/semantic-release-gh-pages-plugin/target/es5/util.js' {}

                                                                                                                                      function anyDefined

                                                                                                                                      anyDefined: (...args: any[]) => any;

                                                                                                                                        function catchToSmth

                                                                                                                                        catchToSmth: (fn: ICallable, smth?: any) => (...args: any[]) => any;

                                                                                                                                          namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/config.js

                                                                                                                                          module '@qiwi/semantic-release-gh-pages-plugin/target/es6/config.js' {}

                                                                                                                                            variable DEFAULT_BRANCH

                                                                                                                                            const DEFAULT_BRANCH: string;

                                                                                                                                              variable DEFAULT_DST

                                                                                                                                              const DEFAULT_DST: string;

                                                                                                                                                variable DEFAULT_ENTERPRISE

                                                                                                                                                const DEFAULT_ENTERPRISE: boolean;

                                                                                                                                                  variable DEFAULT_MSG

                                                                                                                                                  const DEFAULT_MSG: string;

                                                                                                                                                    variable DEFAULT_PATTERN

                                                                                                                                                    const DEFAULT_PATTERN: string;

                                                                                                                                                      variable DEFAULT_PULL_TAGS_BRANCH

                                                                                                                                                      const DEFAULT_PULL_TAGS_BRANCH: string;

                                                                                                                                                        variable DEFAULT_SRC

                                                                                                                                                        const DEFAULT_SRC: string;

                                                                                                                                                          variable GITIO_REPO_PATTERN

                                                                                                                                                          const GITIO_REPO_PATTERN: RegExp;

                                                                                                                                                            variable PLUGIN_PATH

                                                                                                                                                            const PLUGIN_PATH: string;
                                                                                                                                                            • semantic-release-gh-pages-plugin

                                                                                                                                                            function extractRepoDomain

                                                                                                                                                            extractRepoDomain: (repoUrl: string) => string;

                                                                                                                                                            function extractRepoName

                                                                                                                                                            extractRepoName: (repoUrl: string) => string;

                                                                                                                                                            function extractRepoToken

                                                                                                                                                            extractRepoToken: (repoUrl: string) => string;

                                                                                                                                                            function getRepoUrl

                                                                                                                                                            getRepoUrl: (
                                                                                                                                                            pluginConfig: TAnyMap,
                                                                                                                                                            context: TContext,
                                                                                                                                                            enterprise: boolean
                                                                                                                                                            ) => Promise<string>;

                                                                                                                                                            function getToken

                                                                                                                                                            getToken: (env: TAnyMap, repoUrl: string) => string | undefined;

                                                                                                                                                            function getUrlFromPackage

                                                                                                                                                            getUrlFromPackage: () => string;

                                                                                                                                                            function reassembleRepoUrl

                                                                                                                                                            reassembleRepoUrl: (
                                                                                                                                                            redirectedUrl: string,
                                                                                                                                                            context: TContext
                                                                                                                                                            ) => string | undefined;

                                                                                                                                                            function resolveConfig

                                                                                                                                                            resolveConfig: (
                                                                                                                                                            pluginConfig: TAnyMap,
                                                                                                                                                            context: TContext,
                                                                                                                                                            path?: string,
                                                                                                                                                            step?: string
                                                                                                                                                            ) => Promise<IGhpagesPluginConfig>;

                                                                                                                                                            function resolveOptions

                                                                                                                                                            resolveOptions: (
                                                                                                                                                            pluginConfig: TAnyMap,
                                                                                                                                                            context: TContext,
                                                                                                                                                            path?: string,
                                                                                                                                                            step?: string
                                                                                                                                                            ) => TAnyMap;

                                                                                                                                                            namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/defaults.js

                                                                                                                                                            module '@qiwi/semantic-release-gh-pages-plugin/target/es6/defaults.js' {}

                                                                                                                                                              variable DEFAULT_BRANCH

                                                                                                                                                              const DEFAULT_BRANCH: string;

                                                                                                                                                                variable DEFAULT_DST

                                                                                                                                                                const DEFAULT_DST: string;

                                                                                                                                                                  variable DEFAULT_ENTERPRISE

                                                                                                                                                                  const DEFAULT_ENTERPRISE: boolean;

                                                                                                                                                                    variable DEFAULT_MSG

                                                                                                                                                                    const DEFAULT_MSG: string;

                                                                                                                                                                      variable DEFAULT_PATTERN

                                                                                                                                                                      const DEFAULT_PATTERN: string;

                                                                                                                                                                        variable DEFAULT_PULL_TAGS_BRANCH

                                                                                                                                                                        const DEFAULT_PULL_TAGS_BRANCH: string;

                                                                                                                                                                          variable DEFAULT_SRC

                                                                                                                                                                          const DEFAULT_SRC: string;

                                                                                                                                                                            variable PLUGIN_PATH

                                                                                                                                                                            const PLUGIN_PATH: string;
                                                                                                                                                                            • semantic-release-gh-pages-plugin

                                                                                                                                                                            namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/ghpages.js

                                                                                                                                                                            module '@qiwi/semantic-release-gh-pages-plugin/target/es6/ghpages.js' {}

                                                                                                                                                                              variable OK

                                                                                                                                                                              const OK: { status: string };

                                                                                                                                                                              function publish

                                                                                                                                                                              publish: (opts: IPushOpts) => Promise<unknown>;

                                                                                                                                                                              function pullTags

                                                                                                                                                                              pullTags: (opts: IPushOpts) => Promise<any>;

                                                                                                                                                                              function pushPages

                                                                                                                                                                              pushPages: (opts: IPushOpts) => Promise<unknown>;

                                                                                                                                                                              namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/index.js

                                                                                                                                                                              module '@qiwi/semantic-release-gh-pages-plugin/target/es6/index.js' {}

                                                                                                                                                                                variable _default

                                                                                                                                                                                const _default: {
                                                                                                                                                                                verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;
                                                                                                                                                                                publish: (pluginConfig: any, context: TContext) => Promise<unknown>;
                                                                                                                                                                                };

                                                                                                                                                                                  variable DEFAULT_BRANCH

                                                                                                                                                                                  const DEFAULT_BRANCH: string;

                                                                                                                                                                                    variable DEFAULT_DST

                                                                                                                                                                                    const DEFAULT_DST: string;

                                                                                                                                                                                      variable DEFAULT_ENTERPRISE

                                                                                                                                                                                      const DEFAULT_ENTERPRISE: boolean;

                                                                                                                                                                                        variable DEFAULT_MSG

                                                                                                                                                                                        const DEFAULT_MSG: string;

                                                                                                                                                                                          variable DEFAULT_PATTERN

                                                                                                                                                                                          const DEFAULT_PATTERN: string;

                                                                                                                                                                                            variable DEFAULT_PULL_TAGS_BRANCH

                                                                                                                                                                                            const DEFAULT_PULL_TAGS_BRANCH: string;

                                                                                                                                                                                              variable DEFAULT_SRC

                                                                                                                                                                                              const DEFAULT_SRC: string;

                                                                                                                                                                                                variable PLUGIN_PATH

                                                                                                                                                                                                const PLUGIN_PATH: string;
                                                                                                                                                                                                • semantic-release-gh-pages-plugin

                                                                                                                                                                                                function publish

                                                                                                                                                                                                publish: (pluginConfig: any, context: TContext) => Promise<unknown>;

                                                                                                                                                                                                  function verifyConditions

                                                                                                                                                                                                  verifyConditions: (pluginConfig: any, context: TContext) => Promise<void>;

                                                                                                                                                                                                    namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js

                                                                                                                                                                                                    module '@qiwi/semantic-release-gh-pages-plugin/target/es6/interface.js' {}

                                                                                                                                                                                                      interface IGhpagesPluginConfig

                                                                                                                                                                                                      interface IGhpagesPluginConfig {}

                                                                                                                                                                                                        property add

                                                                                                                                                                                                        add?: boolean;

                                                                                                                                                                                                          property ciBranch

                                                                                                                                                                                                          ciBranch: string;

                                                                                                                                                                                                            property docsBranch

                                                                                                                                                                                                            docsBranch: string;

                                                                                                                                                                                                              property dotfiles

                                                                                                                                                                                                              dotfiles?: boolean;

                                                                                                                                                                                                                property dst

                                                                                                                                                                                                                dst: string;

                                                                                                                                                                                                                  property enterprise

                                                                                                                                                                                                                  enterprise?: boolean;

                                                                                                                                                                                                                    property msg

                                                                                                                                                                                                                    msg: string;

                                                                                                                                                                                                                      property pattern

                                                                                                                                                                                                                      pattern?: string;

                                                                                                                                                                                                                        property pullTagsBranch

                                                                                                                                                                                                                        pullTagsBranch?: string;

                                                                                                                                                                                                                          property repo

                                                                                                                                                                                                                          repo: string;

                                                                                                                                                                                                                            property src

                                                                                                                                                                                                                            src: string;

                                                                                                                                                                                                                              property token

                                                                                                                                                                                                                              token?: string;

                                                                                                                                                                                                                                interface ILogger

                                                                                                                                                                                                                                interface ILogger {}

                                                                                                                                                                                                                                  property error

                                                                                                                                                                                                                                  error: (message: string, ...vars: any[]) => void;

                                                                                                                                                                                                                                    property log

                                                                                                                                                                                                                                    log: (message: string, ...vars: any[]) => void;

                                                                                                                                                                                                                                      interface IPushOpts

                                                                                                                                                                                                                                      interface IPushOpts extends IGhpagesPluginConfig {}

                                                                                                                                                                                                                                        property cwd

                                                                                                                                                                                                                                        cwd: string;

                                                                                                                                                                                                                                          property env

                                                                                                                                                                                                                                          env: TAnyMap;

                                                                                                                                                                                                                                            property logger

                                                                                                                                                                                                                                            logger: ILogger;

                                                                                                                                                                                                                                              property message

                                                                                                                                                                                                                                              message: string;

                                                                                                                                                                                                                                                type TAnyMap

                                                                                                                                                                                                                                                type TAnyMap = {
                                                                                                                                                                                                                                                [key: string]: any;
                                                                                                                                                                                                                                                };

                                                                                                                                                                                                                                                  type TContext

                                                                                                                                                                                                                                                  type TContext = Context & {
                                                                                                                                                                                                                                                  env: TStringMap;
                                                                                                                                                                                                                                                  branch?: Exclude<BranchSpec, string>;
                                                                                                                                                                                                                                                  cwd: string;
                                                                                                                                                                                                                                                  options: TAnyMap & {
                                                                                                                                                                                                                                                  publish?: Array<any>;
                                                                                                                                                                                                                                                  verifyConditions?: Array<any>;
                                                                                                                                                                                                                                                  };
                                                                                                                                                                                                                                                  };

                                                                                                                                                                                                                                                    type TStringMap

                                                                                                                                                                                                                                                    type TStringMap = {
                                                                                                                                                                                                                                                    [key: string]: string;
                                                                                                                                                                                                                                                    };

                                                                                                                                                                                                                                                      namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/tpl.js

                                                                                                                                                                                                                                                      module '@qiwi/semantic-release-gh-pages-plugin/target/es6/tpl.js' {}

                                                                                                                                                                                                                                                        function render

                                                                                                                                                                                                                                                        render: (template: string, context: TAnyMap, logger: ILogger) => string;

                                                                                                                                                                                                                                                        namespace @qiwi/semantic-release-gh-pages-plugin/target/es6/util.js

                                                                                                                                                                                                                                                        module '@qiwi/semantic-release-gh-pages-plugin/target/es6/util.js' {}

                                                                                                                                                                                                                                                          function anyDefined

                                                                                                                                                                                                                                                          anyDefined: (...args: any[]) => any;

                                                                                                                                                                                                                                                            function catchToSmth

                                                                                                                                                                                                                                                            catchToSmth: (fn: ICallable, smth?: any) => (...args: any[]) => any;

                                                                                                                                                                                                                                                              Package Files (1)

                                                                                                                                                                                                                                                              Dependencies (11)

                                                                                                                                                                                                                                                              Dev Dependencies (18)

                                                                                                                                                                                                                                                              Peer Dependencies (0)

                                                                                                                                                                                                                                                              No peer dependencies.

                                                                                                                                                                                                                                                              Badge

                                                                                                                                                                                                                                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                                                                                                                                                                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@qiwi/semantic-release-gh-pages-plugin.

                                                                                                                                                                                                                                                              • Markdown
                                                                                                                                                                                                                                                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@qiwi/semantic-release-gh-pages-plugin)
                                                                                                                                                                                                                                                              • HTML
                                                                                                                                                                                                                                                                <a href="https://www.jsdocs.io/package/@qiwi/semantic-release-gh-pages-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>