我用于实现惊人功能的新 Nuxt 模块。
my-module 依赖项添加到您的项目中# Using pnpm
pnpm add -D my-module
# Using yarn
yarn add --dev my-module
# Using npm
npm install --save-dev my-module
my-module 添加到 nuxt.config.ts 的 modules 部分export default defineNuxtConfig({
modules: [
'my-module'
]
})
就是这样!您现在可以在您的 Nuxt 应用程序中使用我的模块了 ✨
# 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