nuxt3-pnpm-monorepo Tailwind Templates

Nuxt3 Pnpm Monorepo

Nuxt 3 PNPM Monorepo boilerplate including Tailwind, Storybook and Pinia

@devstdo/nuxt3-pnpm-monorepo ๐Ÿ’š

๐Ÿš€ Opinionated Nuxt, Tailwind & Storybook monorepo for Nuxt 3 frontend webapps

Features

Architecture

Apps

~/apps/webapp

Contains all general logic that is tightly coupled with nuxt

~/apps/!(webapp)

All platform specific applications

Packages

~/packages/design

Design System, contains abstract vue components & logic that couples applications with design elements

~/packages/modules

Build Modules and so forth

~/packages/services

All general logic that isn't tightly coupled to vue or nuxt and could be used in other JS/Node contexts.

~/packages/translations

All Translations

Plugins

Nuxt Modules

  • VueUse - collection of useful composition APIs.
  • Pinia - intuitive, type safe, light and flexible Store for Vue.
  • Nuxt Devtools - Unleash Nuxt Developer Experience.

IDE

VS

This Template is designed to provide great DX with VS Code and Volar.

Usage

TBD

Development

There are several ways to run the monorepo project:

  • pnpm dev from monorepo root - run all apps together as well as run storybook. Each app accessible via http://localhost:{port}/. List of ports can be found in package.json.
  • pnpm %app% dev from monorepo root - run specific app (e.g. pnpm webapp dev). App accessible via http://localhost:3000/.
  • run app from specific app folder (e.g. cd apps/webapp && pnpm dev).

Note

By launching all applications or one is strictly recommended to run pnpm install or pnpm i to install all dependencies beforehand. It needs because of renovate plugin that constantly updates dependencies in all packages.

Top categories

Loading Svelte Themes