Web TippsUse custom web fonts in Google Sheets charts(08.09.2026 um 17:05 Uhr)
Web TippsIntroducing the new 1Password App for Google Chat(08.09.2026 um 18:02 Uhr)
Web TippsUse custom web fonts in Google Sheets charts(08.09.2026 um 17:05 Uhr)
Web TippsIntroducing the new 1Password App for Google Chat(08.09.2026 um 18:02 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 2 Min Lesezeit
0

Create-Vue

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




Visão Geral



Create-Vue é a ferramenta oficial recomendada para criação de projetos Vue.js. Ela substitui o antigo Vue CLI, oferencendo uma experiência mais moderna baseada em Vite.






Requisitos Básicos




  • Node.js versão 18.0 ou superior

  • Gerenciador de pacotes (npm, yarn ou pnpm)






Criando um novo projeto



Comando Básico




CODE
npm create vue@latest






Processo de Setup



Durante criação do projeto, você será questionado sobre várias opções:




CODE
✔ Project name: … <nome-do-seu-projeto>
✔ Add TypeScript? … No / Yes
✔ Add JSX Support? … No / Yes
✔ Add Vue Router for Single Page Application development? … No / Yes
✔ Add Pinia for state management? … No / Yes
✔ Add Vitest for Unit Testing? … No / Yes
✔ Add an End-to-End Testing Solution? … No / Yes
✔ Add ESLint for code quality? … No / Yes
✔ Add Prettier for code formatting? … No / Yes










Estrutura do Projeto Gerado






CODE
nome-do-projeto/
├── .vscode/
├── node_modules/
├── public/
├── src/
│ ├── assets/
│ ├── components/
│ ├── views/ (se Vue Router selecionado)
│ ├── App.vue
│ └── main.js
├── .eslintrc.js (se ESLint selecionado)
├── .prettierrc.js (se Prettier selecionado)
├── index.html
├── package.json
├── README.md
└── vite.config.js










Comandos Importantes



Instalação de Dependências




CODE
cd nome-do-projeto
npm install






Desenvolvimento




CODE
npm run dev






Build para Produção




CODE
npm run build









Configurações Principais



Vite Config




CODE
// vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
plugins: [vue()],
// outras configurações
})









Ambiente de Desenvolvimento




  • Dev server com Hot Module Replacement (HMR)

  • Porta padrão: 5173

  • Configurável via vite.config.js






Boas Práticas






1. Organização de Arquivos




  • Componentes em src/components

  • Páginas/Views em src/views

  • Assets em src/assets

  • Stores (Pinia) em src/stores






2. Convenções de Nomenclatura




  • Componentes: PascalCase (ex: UserProfile.vue)

  • Arquivos de composables: camelCase com prefix 'use' (ex: useAuth.js)

  • Views: PascalCase com sufixo 'View' (ex: HomeView.vue)






3. Configurações Recomendadas




  • ESLint para qualidade de código

  • Prettier para formatação

  • TypeScript para projetos maiores

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
Use custom web fonts in Google Sheets charts
2 Quellen
Introducing the new 1Password App for Google Chat
1 Quelle
Context-aware access controls are available for Gemini Enterprise in the Admin console
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Create-Vue

Thematisch verwandte Begriffe: CreateVue · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...