- Add
kstraszewski-my-module
dependency to your project
# Using pnpm
pnpm add -D kstraszewski-my-module
# Using yarn
yarn add --dev kstraszewski-my-module
# Using npm
npm install --save-dev kstraszewski-my-module
- Add
kstraszewski-my-module
to themodules
section ofnuxt.config.ts
for Nuxt3
// For Nuxt3
export default defineNuxtConfig({
modules: [
'kstraszewski-my-module'
]
})
// For Nuxt2
export default {
buildModules: [
'kstraszewski-my-module'
]
}
That's it! You can now use My Module in your Nuxt app ✨
<template>
<div>
<LBtn> Test buttona </LBtn>
</div>
</template>
# 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