1.0.3 • Published 3 years ago

@dewib/git-widget v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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>