Skip to content
项目

nuxt/module-builder

在 GitHub 查看

关于

Complete solution to build and ship Nuxt modules.

网站与应用开发

这些数字如何统计

可以做什么

  • Builds modules for Nuxt 3 and later, with no configuration for the module starter layout
  • Builds with tsdown through the builder() plugin: bundles the module entry, and transpiles the runtime directory file by file
  • Generates declarations against the module's own .nuxt, for .ts and .vue files alike
  • Writes the type shims that give nuxt.config autocompletion for the module's options and hooks

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

📦 Nuxt Module Builder

npm version License npm downloads Volta board

The complete solution to build and ship Nuxt modules.

Features

  • Builds modules for Nuxt 3 and later, with no configuration for the module starter layout
  • Builds with tsdown through the builder() plugin: bundles the module entry, and transpiles the runtime directory file by file
  • Generates declarations against the module's own .nuxt, for .ts and .vue files alike
  • Writes the type shims that give nuxt.config autocompletion for the module's options and hooks
  • Lets a playground run the module's sources while package.json publishes dist, and checks the published paths before every build

Quick start

Create a module from the module starter:

pnpm create nuxt -t module my-module
cd my-module
pnpm dev

Building a module requires Node ^22.18.0 || ^24.11.0 || >=26.0.0, with tsdown and typescript installed alongside @nuxt/module-builder. Apps that install a built module need Nuxt 3 or later.

Documentation

For writing the module itself, read the Nuxt Module Author Guide.

💻 Development

See CONTRIBUTING.md for setup, the architecture and the tests.

License

MIT - Made with 💚

探索相关项目

加载中…