Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 778 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 778 Bytes

git-widget

Widget for nuxt to display git info build

alt text

Installation

Add package yarn add @dewib/git-widget

Add the module to the modules of your nuxt.config.js

export default {
  modules: ['@dewib/git-widget']
}

Configure

export default {
  gitWidget: {
    html: true, // Display tooltip (default: true)
    disabled: false // ex: disabled for production (default: false)
  }
}

Usage

This module inject a plugin that expose the $dewib.gitWidget.hash hash and $dewib.gitWidget.url url inside Nuxt context.

<template>
  <a :href="$dewib.gitWidget.url" target="_blank">Build hash: {{ $dewib.gitWidget.hash.short }}</a>
</template>