Nuxt + Turborepo
Monorepo: the app in apps/web, tasks cached by turbo. This page shows exactly what pickstack adds to a Nuxt project for Turborepo: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework nuxt --modules turborepo --yesCustomize in the configurator
Packages it adds
| Package | Version | Type |
|---|---|---|
turbo | ^2.11.13 | dev |
New files
node_modules dist .nuxt .output .data .nitro .cache .env .env.local .DS_Store
<template>
<NuxtRouteAnnouncer />
<main class="app">
<nav class="nav">
<NuxtLink class="link" to="/">Home</NuxtLink>
<NuxtLink class="link" to="/about">About</NuxtLink>
</nav>
<NuxtPage />
</main>
</template>
:root {
font-family: system-ui, sans-serif;
color: #0f172a;
background: #f8fafc;
}
body {
margin: 0;
}
.app {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2rem;
padding: 2rem;
box-sizing: border-box;
}
.title {
font-size: 1.875rem;
margin: 0;
}
.nav {
display: flex;
gap: 1rem;
}
.link {
color: #475569;
text-decoration: none;
font-weight: 500;
}
.link:hover {
color: #0f172a;
}
.page {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.text {
max-width: 28rem;
text-align: center;
color: #475569;
}
.card {
background: #fff;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
text-align: center;
}
.count {
font-size: 3rem;
font-weight: 700;
margin: 0;
font-variant-numeric: tabular-nums;
}
.row {
margin-top: 1.5rem;
display: flex;
justify-content: center;
gap: 0.75rem;
}
.btn {
background: #0f172a;
color: #fff;
border: 0;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
font: inherit;
cursor: pointer;
}
.btn:hover {
background: #334155;
}
<script setup lang="ts">
import { ref } from "vue";
const count = ref(0);
</script>
<template>
<div class="card">
<p class="count">{{ count }}</p>
<div class="row">
<button type="button" class="btn" @click="count--">-1</button>
<button type="button" class="btn" @click="count++">+1</button>
</div>
</div>
</template>
<template>
<section class="page">
<h1 class="title">About</h1>
<p class="text">Built with Nuxt 4, Vue 3, TypeScript, Turborepo.</p>
</section>
</template>
<template>
<section class="page">
<h1 class="title">my-app</h1>
<CounterCard />
</section>
</template>
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2025-07-15",
devtools: { enabled: true },
css: ["~/assets/css/main.css"],
});
{
"name": "web",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"typecheck": "nuxt typecheck"
},
"dependencies": {
"nuxt": "^4.7.0",
"vue": "^3.5.46",
"vue-router": "^5.5.1"
},
"devDependencies": {
"typescript": "~6.0.3",
"vue-tsc": "^3.3.14"
}
}
User-Agent: * Disallow:
{
"files": [],
"references": [
{
"path": "./.nuxt/tsconfig.app.json"
},
{
"path": "./.nuxt/tsconfig.server.json"
},
{
"path": "./.nuxt/tsconfig.shared.json"
},
{
"path": "./.nuxt/tsconfig.node.json"
}
]
}
{
"$schema": "https://turborepo.dev/schema.json",
"ui": "tui",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".output/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"typecheck": {
"dependsOn": ["^typecheck"]
}
}
}
Changes to existing files
node_modules+.turbo−dist−.nuxt−.output−.data−.nitro−.cache .env .env.local .DS_Store⋯ 1 unchanged lines
Project files
.gitignoreREADME.mdapps/web/.gitignoreapps/web/app/app.vueapps/web/app/assets/css/main.cssapps/web/app/components/CounterCard.vueapps/web/app/pages/about.vueapps/web/app/pages/index.vueapps/web/nuxt.config.tsapps/web/package.jsonapps/web/public/robots.txtapps/web/tsconfig.jsonpackage.jsonturbo.json