Skip to content

gaetansenn/git-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

Releases

No releases published

Packages

No packages published