---
title: "Project structure and conventions · vuejs.school"
description: "Decide where files go and what they are called, import without barrels, and pin pnpm and Node so every machine installs the same project."
canonical_url: "https://vuejs.school/learn/tooling/project-structure-and-conventions"
meta:
  "og:description": "Decide where files go and what they are called, import without barrels, and pin pnpm and Node so every machine installs the same project."
  "og:image": "https://vuejs.school/_og/d/a_~UHJvamVjdCBzdHJ1Y3R1cmUgYW5kIGNvbnZlbnRpb25zIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Project%2Bstructure%2Band%2Bconventions%2Cdescription_~RGVjaWRlIHdoZXJlIGZpbGVzIGdvIGFuZCB3aGF0IHRoZXkgYXJlIGNhbGxlZCwgaW1wb3J0IHdpdGhvdXQgYmFycmVscywgYW5kIHBpbiBwbnBtIGFuZCBOb2RlIHNvIGV2ZXJ5IG1hY2hpbmUgaW5zdGFsbHMgdGhlIHNhbWUgcHJvamVjdC4%2Ceyebrow_~UHJvamVjdHMgJiB0b29saW5nIMK3IExlc3NvbiAyIG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi90b29saW5nL3Byb2plY3Qtc3RydWN0dXJlLWFuZC1jb252ZW50aW9ucyI%2Cs_CG4bwUA16ENJs4PT.png"
  "og:image:alt": "Project structure and conventions · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Project structure and conventions · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~UHJvamVjdCBzdHJ1Y3R1cmUgYW5kIGNvbnZlbnRpb25zIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Project%2Bstructure%2Band%2Bconventions%2Cdescription_~RGVjaWRlIHdoZXJlIGZpbGVzIGdvIGFuZCB3aGF0IHRoZXkgYXJlIGNhbGxlZCwgaW1wb3J0IHdpdGhvdXQgYmFycmVscywgYW5kIHBpbiBwbnBtIGFuZCBOb2RlIHNvIGV2ZXJ5IG1hY2hpbmUgaW5zdGFsbHMgdGhlIHNhbWUgcHJvamVjdC4%2Ceyebrow_~UHJvamVjdHMgJiB0b29saW5nIMK3IExlc3NvbiAyIG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi90b29saW5nL3Byb2plY3Qtc3RydWN0dXJlLWFuZC1jb252ZW50aW9ucyI%2Cs_CG4bwUA16ENJs4PT.png"
  "twitter:image:alt": "Project structure and conventions · vuejs.school"
---

> Index of every page on this site: [llms.txt](https://vuejs.school/llms.txt)

# **Project structure and conventions**

Decide where files go and what they are called, import without barrels, and pin pnpm and Node so every machine installs the same project.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuejs.school/#website","@type":"WebSite","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school/","publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#webpage","@type":"WebPage","description":"Decide where files go and what they are called, import without barrels, and pin pnpm and Node so every machine installs the same project.","name":"Project structure and conventions","url":"https://vuejs.school/learn/tooling/project-structure-and-conventions","breadcrumb":{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/tooling/project-structure-and-conventions"]}],"primaryImageOfPage":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/#identity","@type":"Organization","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school","logo":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#article","description":"Decide where files go and what they are called, import without barrels, and pin pnpm and Node so every machine installs the same project.","headline":"Project structure and conventions","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~UHJvamVjdCBzdHJ1Y3R1cmUgYW5kIGNvbnZlbnRpb25zIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Project%2Bstructure%2Band%2Bconventions%2Cdescription_~RGVjaWRlIHdoZXJlIGZpbGVzIGdvIGFuZCB3aGF0IHRoZXkgYXJlIGNhbGxlZCwgaW1wb3J0IHdpdGhvdXQgYmFycmVscywgYW5kIHBpbiBwbnBtIGFuZCBOb2RlIHNvIGV2ZXJ5IG1hY2hpbmUgaW5zdGFsbHMgdGhlIHNhbWUgcHJvamVjdC4%2Ceyebrow_~UHJvamVjdHMgJiB0b29saW5nIMK3IExlc3NvbiAyIG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi90b29saW5nL3Byb2plY3Qtc3RydWN0dXJlLWFuZC1jb252ZW50aW9ucyI%2Cs_CG4bwUA16ENJs4PT.png","@type":["Article","TechArticle"],"articleSection":["Tooling"],"author":{"@id":"https://vuejs.school/#identity"},"image":{"@id":"https://vuejs.school/#/schema/image/1"},"isPartOf":{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#webpage"},"keywords":["folders by type or feature","multi-word component names","index.ts barrels","pnpm-lock.yaml","engines and .nvmrc"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/tooling/project-structure-and-conventions#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Skill tree","item":"https://vuejs.school/track","position":1},{"@type":"ListItem","name":"Projects & tooling","item":"https://vuejs.school/track/tooling","position":2},{"@type":"ListItem","name":"Project structure and conventions","position":3}]},{"@id":"https://vuejs.school/#logo","@type":"ImageObject","caption":"vuejs.school","contentUrl":"https://vuejs.school/apple-touch-icon.png","inLanguage":"en","url":"https://vuejs.school/apple-touch-icon.png"},{"@id":"https://vuejs.school/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuejs.school/_og/d/a_~UHJvamVjdCBzdHJ1Y3R1cmUgYW5kIGNvbnZlbnRpb25zIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Project%2Bstructure%2Band%2Bconventions%2Cdescription_~RGVjaWRlIHdoZXJlIGZpbGVzIGdvIGFuZCB3aGF0IHRoZXkgYXJlIGNhbGxlZCwgaW1wb3J0IHdpdGhvdXQgYmFycmVscywgYW5kIHBpbiBwbnBtIGFuZCBOb2RlIHNvIGV2ZXJ5IG1hY2hpbmUgaW5zdGFsbHMgdGhlIHNhbWUgcHJvamVjdC4%2Ceyebrow_~UHJvamVjdHMgJiB0b29saW5nIMK3IExlc3NvbiAyIG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi90b29saW5nL3Byb2plY3Qtc3RydWN0dXJlLWFuZC1jb252ZW50aW9ucyI%2Cs_CG4bwUA16ENJs4PT.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~UHJvamVjdCBzdHJ1Y3R1cmUgYW5kIGNvbnZlbnRpb25zIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Project%2Bstructure%2Band%2Bconventions%2Cdescription_~RGVjaWRlIHdoZXJlIGZpbGVzIGdvIGFuZCB3aGF0IHRoZXkgYXJlIGNhbGxlZCwgaW1wb3J0IHdpdGhvdXQgYmFycmVscywgYW5kIHBpbiBwbnBtIGFuZCBOb2RlIHNvIGV2ZXJ5IG1hY2hpbmUgaW5zdGFsbHMgdGhlIHNhbWUgcHJvamVjdC4%2Ceyebrow_~UHJvamVjdHMgJiB0b29saW5nIMK3IExlc3NvbiAyIG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi90b29saW5nL3Byb2plY3Qtc3RydWN0dXJlLWFuZC1jb252ZW50aW9ucyI%2Cs_CG4bwUA16ENJs4PT.png"}]}
```