Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A TypeScript bundle template for building Nuxt.js modules with Vite, ESLint, Vitest, and automated releases.
Nuxt Typescript Bundle Template is a GitHub boilerplate for authoring Nuxt.js modules as TypeScript bundles, using the TypeScript compiler with the Vite bundler and preconfigured with linting, testing, and automated publishing.
Nuxt Typescript Bundle Template is a starter repository that scaffolds a Nuxt.js module as a publishable TypeScript package. It takes a project skeleton with Nuxt, Vue, and TypeScript and produces an npm-ready bundle together with a playground Nuxt app for local development. The template is hosted on GitHub under productdevbookcom/nuxt-bundle-template and is licensed under the MIT License.
The template ships with the following preconfigured tools:
pnpm lint and pnpm lint:fix scripts provided.pnpm test or pnpm test:watch.pnpm dev to launch the development server, use pnpm dev:build or pnpm dev:prepare to prepare the playground Nuxt app, and test changes interactively.pnpm release to bump the version; the terminal asks for the version type, then commits and pushes, after which GitHub Actions publishes git tags and the NPM local registry publishes the package.pnpm lint and pnpm test to catch issues, with watch modes available for continuous development.pnpm install.pnpm dev to develop, pnpm build to create the bundle, and pnpm release to cut a release.The release flow is the most elaborate: Bumpp bumps the version, commits and pushes the change; then GitHub Actions publishes a git tag and the NPM local registry publishes the package automatically.
The template requires pnpm. The README instructs installing dependencies with pnpm install and uses pnpm scripts for all development, build, test, and release commands.
Clone the repo, run pnpm install, then pnpm dev to start the development server. To build the Nuxt playground app before developing, run pnpm dev:prepare or pnpm dev:build.
pnpm release?The terminal prompts for the version type, then Bumpp automatically commits and pushes the changes. Behind the scenes, GitHub Actions publishes git tags and the NPM local registry publishes the package.
Yes. The project is licensed under the MIT License, so it can be freely used, modified, and redistributed.
