@nasontech/nuxt-update-available
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Update Available

npm version npm downloads License Nuxt

React to app updates.

Features

Respond to new versions of your application.

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add @nasontech/nuxt-update-available

That's it! You can now use useUpdateAvailable() in your Nuxt app ✨

<script setup lang="ts">
const { updateAvailable } = useUpdateAvailable()
</script>

<template>
	<div>
		<NuxtRouteAnnouncer />

		<NuxtLayout>
			<NuxtPage />
		</NuxtLayout>

		<ClientOnly>
			<UpdateDialog :open="updateAvailable" />
		</ClientOnly>
	</div>
</template>

Contribution

Local development
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

Readme

Keywords

none

Package Sidebar

Install

npm i @nasontech/nuxt-update-available

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

5.81 kB

Total Files

14

Last publish

Collaborators

  • bnason