vite-plugin-gitlab-flow
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

vite-plugin-gitlab-flow

license downloads

GitLab pipelined print build information plug-ins

中文文档

Feature

Goal: The console displays the builder, build time, branch, and latest COMMIT information of the current running code, so that you can easily confirm whether the wrong version is missing.
Attention: Only useful in GitLab pipeline

Preview

You can view the deployment information for the code in the console

image.png

Installation

pnpm i -D vite-plugin-gitlab-flow

or

yarn add -D vite-plugin-gitlab-flow

or

npm i -D vite-plugin-gitlab-flow

Basic usage

vite.config.js/ts

import vitePluginGitLabFlow from "vite-plugin-gitlab-flow";

plugins: [
    vitePluginGitLabFlow({
        projectName: '榕树工具',
        debug: true,
        extra: [
            {
                keys: 'VITE_APP_TITLE',
                label: '项目title'
            }
        ],
        styles:{
            color: 'red',
        }
    }),
]

Options

options description type default
projectName? project name string package.name
debug? debug boolean false
extra? Extra display field string []
styles? Custom style Style Style

鸣谢

Thanks vite-plugin-aliyun-flow the ideas and code.

Package Sidebar

Install

npm i vite-plugin-gitlab-flow

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

19.3 kB

Total Files

11

Last publish

Collaborators

  • taosiqi