Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traductions de la page "v2/guide/mixins.html" et "v2/guide/single-file-components.md" #10

Merged
merged 25 commits into from
Jan 14, 2017
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3450a96
traduction de la page mixins.md
yann-yinn Jan 8, 2017
43e8de1
corrections typos
yann-yinn Jan 8, 2017
a487dfb
traduction de la page [v2/guide/single-file-components.md]
yann-yinn Jan 8, 2017
6d31263
[v2/guide/single-file-components.md] - fix du titre
yann-yinn Jan 8, 2017
4c946aa
[v2/guide/single-file-components.md] - suppression de l'encart de war…
yann-yinn Jan 8, 2017
15187a0
[v2/guide/single-file-components.md] - fix typos
yann-yinn Jan 8, 2017
55b7261
[v2/guide/single-file-components.md] - rajout d'une phrase manquante …
yann-yinn Jan 8, 2017
017cd6e
fix typo
yann-yinn Jan 8, 2017
d0e61dd
[mixins.md] traduction plus précise du premier paragraphe
yann-yinn Jan 9, 2017
16de468
[mixins.md] réutilisation du mot contenir pour 'contain'
yann-yinn Jan 9, 2017
0373669
[mixins.md] traduction plus précise du deuxieme paragraphe
yann-yinn Jan 9, 2017
6c83c0e
[mixins.md] traduction plus précise du troisieme paragraphe
yann-yinn Jan 9, 2017
3712eb9
[mixins.md] traduction plus précise du 4eme paragraphe
yann-yinn Jan 9, 2017
daffaf5
[mixins.md] traduction plus précises des derniers paragraphes
yann-yinn Jan 9, 2017
fa5e8d1
single-file-components - réecriture plus proche de l'originale
yann-yinn Jan 9, 2017
72c7f1d
single-file-components.md : réecriture plus proche de l'original
yann-yinn Jan 9, 2017
27ad788
single-file-components.md : fin réecriture plus proche de l'original
yann-yinn Jan 9, 2017
3629ab6
[v2/guide/single-file-components.md] - fix dernier paragraphe - fin d…
yann-yinn Jan 9, 2017
0dc42e3
[mixins.md] suppression de l'encart concernant la traduction
yann-yinn Jan 9, 2017
9c3c9ec
[mixins.md] relecture sylvain
yann-yinn Jan 9, 2017
f115652
[single-file-components.md] relecture Sylvain
yann-yinn Jan 9, 2017
94f57ed
single-file-components.md: relecture Haeresis
yann-yinn Jan 10, 2017
fe716c5
single-file-components.md - anciennement Jade
yann-yinn Jan 11, 2017
c5153c2
mixins.md : traduction commentaire manquant. single-file-components.md
yann-yinn Jan 14, 2017
0a700e1
Merge branch 'master' into master
yann-yinn Jan 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions src/v2/guide/mixins.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ type: guide
order: 17
---

## Basics
## Bases

<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p>Mixins are a flexible way to distribute reusable functionalities for Vue components. A mixin object can contain any component options. When a component uses a mixin, all options in the mixin will be "mixed" into the component's own options.
<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si la traduction est finie, on peut retirer ce paragraphe


Example:
Les mixins offrent une manière flexible de créer des fonctionnalités réutilisables par les composants de Vue. Un objet mixin peut contenir toute option valide pour un composant. Quand un composant utilise un mixin, toutes les options du mixin seront "fusionnées" avec les options du composant.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pour les composants Vue.


Exemple:

``` js
// define a mixin object
Copy link
Member

@MachinisteWeb MachinisteWeb Jan 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

« // define a mixin object » À traduire

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceci n'a toujours pas été traduit ? Je ne vois pas la modification.

Expand All @@ -23,17 +25,17 @@ var myMixin = {
}
}

// define a component that uses this mixin
// définition d'un composant qui utilise ce mixin
var Component = Vue.extend({
mixins: [myMixin]
})

var component = new Component() // -> "hello from mixin!"
```

## Option Merging
## Fusion des options

When a mixin and the component itself contain overlapping options, they will be "merged" using appropriate strategies. For example, hook functions with the same name are merged into an array so that all of them will be called. In addition, mixin hooks will be called **before** the component's own hooks:
Quand un mixin et un composant définissent les mêmes options, elles seront fusionnées en utilisant la stratégie appropriée. Par exemple, les fonctions de hook avec le même nom seront fusionnées dans un tableau afin qu'elles soient toutes appelées. De plus, les hooks des mixins seront appelés **avant** les hooks du composant:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

« hook » est traduit par « point d'ancrage » dans #7

Je pense approprié de traduire « hook functions » par « fonctions d'ancrage »

soit

« Par exemple, les fonctions d'ancrage avec le même nom »
« De plus, les points d'ancrage des mixins seront appelés avant les points d'ancrage du composant: »

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai appris hier que "hook" s'était francisé : https://fr.wikipedia.org/wiki/Hook_(informatique)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On garde Hook


``` js
var mixin = {
Expand All @@ -53,7 +55,7 @@ new Vue({
// -> "component hook called"
```

Options that expect object values, for example `methods`, `components` and `directives`, will be merged into the same object. The component's options will take priority when there are conflicting keys in these objects:
Les options qui attendent un objet, par exemple `methods`, `components` et `directives`, seront fusionnées dans le même objet. Les options du composant auront la priorité en cas de confit sur les clef d'un de ces objets.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflit (mais le confit m'a donné faim)

sur une ou plusieurs clefs de ces objets.

(ou clés, car petite anecdote: selon BUBEN (théorie de 1935), le pluriel « clefs » serait devenu « clés », car l’addition d’un « f » et d’un « s » gênait à l’écrit (fin du XVIIIe, début du XIXe siècle). Par la suite, du pluriel « clés » serait né le singulier « clé ».)


``` js
var mixin = {
Expand Down Expand Up @@ -84,14 +86,14 @@ vm.bar() // -> "bar"
vm.conflicting() // -> "from self"
```

Note that the same merge strategies are used in `Vue.extend()`.
Notez que les mêmes stratégies de fusion sont utilisée par `Vue.extend()`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utilisées


## Global Mixin
## Mixin global

You can also apply a mixin globally. Use caution! Once you apply a mixin globally, it will affect **every** Vue instance created afterwards. When used properly, this can be used to inject processing logic for custom options:
Vous pouvez aussi appliquer un mixin de manière globale. A utiliser avec prudence ! Une fois que vous appliquez un mixin globalement, il modifiera **toutes** les instances de vues créees ensuite. Bien utilisé, cela peut être exploité pour injecter de la logique pour des options custom :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

À utiliser

créées par la suite.

injecter une logique de traitement pour des options personnalisées


``` js
// inject a handler for `myOption` custom option
// injection d'une fonction pour l'option custom `myOption`
Vue.mixin({
created: function () {
var myOption = this.$options.myOption
Expand All @@ -107,26 +109,26 @@ new Vue({
// -> "hello!"
```

<p class="tip">Use global mixins sparsely and carefully, because it affects every single Vue instance created, including third party components. In most cases, you should only use it for custom option handling like demonstrated in the example above. It's also a good idea to ship them as [Plugins](plugins.html) to avoid duplicate application.</p>
<p class="tip">Utilisez les mixins globaux prudemment et rarement, parce qu'ils affectent chacune des Vue créees, y compris celles des librairies tierces. Dans la plupart des cas, vous devriez uniquement vous en servir pour la gestion des options custom comme illustré dans l'exemple ci-dessus. C'est aussi une bonne idée de les encapsuler dans des [Plugins](plugins.html) pour éviter de les appliquer plusieurs fois par erreur. </p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chacune des instances Vue créées (attention aux deux accents aigus sur créées, faute récurrente)

options personnalisées


## Custom Option Merge Strategies
## Stratégie de fusion des options custom

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

options personnalisées (à débattre sur #4 mais comme le mot custom n'est pas utilisé dans l'API elle-même, je ne vois pas pourquoi on ne traduirait pas le terme)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je l'ai déjà croisé et traduit par « personnalisé » dans #7

Donc « personnalisées » ici


When custom options are merged, they use the default strategy, which simply overwrites the existing value. If you want a custom option to be merged using custom logic, you need to attach a function to `Vue.config.optionMergeStrategies`:
Quand les options custom sont fusionnées, elles utilisent la stratégie par défaut, qui est simplement d'écraser la valeur existante. Si vous souhaitez appliquer une stratégie de fusion custom pour une option custom, vous devez attacher une nouvelle fonction à `Vue.config.optionMergeStrategies`:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appliquer une logique personnalisée pour la fusion d'une option personnalisée

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem


``` js
Vue.config.optionMergeStrategies.myOption = function (toVal, fromVal) {
// return mergedVal
}
```

For most object-based options, you can simply use the same strategy used by `methods`:
Pour la plupart des options qui attendent des objets, vous pouvez simplement utiliser la stratégie de fusion utilisée par `methods`:

``` js
var strategies = Vue.config.optionMergeStrategies
strategies.myOption = strategies.methods
```

A more advanced example can be found on [Vuex](https://github.com/vuejs/vuex)'s 1.x merging strategy:
Un exemple plus avancé peut être trouvé dans la stratégie de fusion de [Vuex](https://github.com/vuejs/vuex) 1.x:

``` js
const merge = Vue.config.optionMergeStrategies.computed
Expand Down
59 changes: 31 additions & 28 deletions src/v2/guide/single-file-components.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
---
title: Single File Components
title: Les composants monofichier

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monofichiers

type: guide
order: 19
---

## Introduction

<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p>In many Vue projects, global components will be defined using `Vue.component`, followed by `new Vue({ el: '#container' })` to target a container element in the body of every page.
Dans beaucoup de projets Vue, des composants globaux seront définis en utilisant `Vue.component`, suivi de `new Vue({ el: '#container' })` pour cibler un élément container dans le corps de chaque page.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

élément conteneur

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'hésite à cause de la correspondance avec l'id #container qui existe côté anglais. ou alors je met #conteneur à la place de #container

Copy link
Member

@MachinisteWeb MachinisteWeb Jan 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je traduirais puisque #container n'est qu'un nom utilisé comme exemple. Effectivement chaque page à « un élément conteneur ».

Par contre dans l'exemple, je suis d'avis de bien garder #container. On ne traduit aucun termes de code (sauf les commentaires).


This can work very well for small to medium-sized projects, where JavaScript is only used to enhance certain views. In more complex projects however, or when your frontend is entirely driven by JavaScript, these disadvantages become apparent:
Cela fonctionnera très bien pour des petits projets ou des projets de taille moyenne, pour lesquels Javascript est utilisé uniquement pour améliorer certains templates. Cependant, pour des projets plus complexes, ou bien quand votre front-end est entièrement généré par Javascript, des désavantages se manifestent :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cela peut très bien fonctionner

certaines vues


- **Global definitions** force unique names for every component
- **String templates** lack syntax highlighting and require ugly slashes for multiline HTML
- **No CSS support** means that while HTML and JavaScript are modularized into components, CSS is conspicuously left out
- **No build step** restricts us to HTML and ES5 JavaScript, rather than preprocessors like Pug (formerly Jade) and Babel
- **Les définitions globales** forcent à avoir un nom unique pour chaque composant
- **Les templates sous forme de chaîne de caractères** ne bénéficient pas de la coloration syntaxique et requiert l'usage de slashes disgracieux pour le HTML multilignes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chaînes

requièrent

multiligne

- **L'absence de support pour le css** signifie que le css ne peut pas être modularisé comme HTML et Javascript

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS plutôt que css, il est recommandé de mettre les acronymes en majuscule.

- **L'absence d'étape de build** nous restreint au HTML et à Javascript ES5, sans pouvoir utiliser des preprocesseurs tels que Babel ou Pug (précédemment Jade).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaScript (majuscule au S)

préprocesseurs


All of these are solved by **single-file components** with a `.vue` extension, made possible with build tools such as Webpack or Browserify.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ici il y a un décalage de ligne par rapport au fichier original. Il faut bien veiller à garder les mêmes saut de ligne et nombre de ligne que l'original pour s'y retrouver dans le futur quand les fichiers originaux vont changer. C'est pourquoi le texte expliquant que la version fr est en cours est accolé à la première ligne.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups pardon tu fais bien de le préciser, je n'avais pas fait attention à ça

Here's a simple example of a file we'll call `Hello.vue`:
Tous ces désavantages sont résolus par les composants monofichier avec une extension `.vue`, rendus possibles par les outils de build tels que Webpack ou Browserify.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monofichiers


Voici un exemple simple de fichier que nous appellerons `Hello.vue` :

<img src="/images/vue-component.png" style="display: block; margin: 30px auto">

Now we get:
Maintenant nous avons :

- [Complete syntax highlighting](https://github.com/vuejs/awesome-vue#syntax-highlighting)
- [CommonJS modules](https://webpack.github.io/docs/commonjs.html)
- [Component-scoped CSS](https://github.com/vuejs/vue-loader/blob/master/docs/en/features/scoped-css.md)
- [Une coloration syntaxique complète](https://github.com/vuejs/awesome-vue#syntax-highlighting)
- [Des modules CommonJS](https://webpack.github.io/docs/commonjs.html)
- [Du css à la portée limitée au composant](https://github.com/vuejs/vue-loader/blob/master/docs/en/features/scoped-css.md)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS


As promised, we can also use preprocessors such as Jade, Babel (with ES2015 modules), and Stylus for cleaner and more feature-rich components.
Et comme promis, nous pouvons aussi utiliser des preprocesseurs tels que Jade, Babel (avec les modules ES2015), et Stylus pour obtenir des composants plus lisibles et plus riches en fonctionnalités.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

préprocesseurs


<img src="/images/vue-component-with-preprocessors.png" style="display: block; margin: 30px auto">

These specific languages are just examples. You could just as easily use Bublé, TypeScript, SCSS, PostCSS - or whatever other preprocessors that help you be productive. If using Webpack with `vue-loader`, it also has first-class support for CSS Modules.
Ces languages spécifiques ne sont que des exemples; vous pourriez tout aussi aisément utiliser Bublé, Typescript, SCSS, PostCSS - ou tout autre preprocesseur qui vous aide à être productif. Si vous utilisez Webpack avec `vue-loader`, vous aurez aussi un outil de premier choix pour les modules CSS.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

langages

préprocesseur


### Qu'en est-il de la séparation des responsabilités ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a priori on le traduit plus souvent en "sépération des préoccupations" (ref: http://weblog.godlike.fr/2012/06/06/abap-bonnes-pratiques-separation-of-concerns/), mais le terme anglais est celui qui dispose du plus de branding et donc de reconnaissance. Je suis OK pour laisser le mot anglais ou l'indiquer entre parenthèses derrière.


### What About Separation of Concerns?
Une chose importante à souligner est que **la séparation des responsabilités n'est pas identique à la séparation des fichiers**. Dans le développement des interfaces utilisateurs modernes, nous avons constaté que plutôt que de diviser tout notre code en trois grosses couches distinctes inter-dépendantes, il était plus intuitif de le diviser en petits composants faiblement couplés, et de les combiner. Au sein d'un composant, son template, sa logique et ses styles sont intrinsèquement couplés, et les réunir rend en réalité le composant plus cohérent et facile à maintenir.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interfaces utilisateur modernes


One important thing to note is that **separation of concerns is not equal to separation of file types.** In modern UI development, we have found that instead of dividing the codebase into three huge layers that interweaves with one another, it makes much more sense to divide them into loosely-coupled components and compose them. Inside a component, its template, logic and styles are inherently coupled, and collocating them actually makes the component more cohesive and maintainable.
Si vous n'aimez pas l'idée des composants monofichier, vous pouvez toujours tirer parti du hot-reloading et la pre-compilation pour mettre le css et le javascript dans des fichiers séparés.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monofichiers

hot-reloading : rechargement à chaud

précompilation

CSS et JavaScript


Even if you don't like the idea of Single-File Components, you can still leverage its hot-reloading and pre-compilation features by separating your JavaScript and CSS into separate files:

``` html
<!-- my-component.vue -->
Expand All @@ -48,22 +50,23 @@ Even if you don't like the idea of Single-File Components, you can still leverag
<style src="./my-component.css"></style>
```

## Getting Started
## Bien commencer

### Pour les utilisateurs qui ne connaissent pas les systemes de modules en Javascript

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

systèmes de build de modules

JavaScript


### For Users New to Module Build Systems in JavaScript
Avec les composants `.vue`, nous entrons de plain-pied dans le domaine des applications Javascript avancées. Cela implique d'apprendre à utiliser quelques nouveaux outils si vous ne les connaissez pas déjà :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaScript


With `.vue` components, we're entering the realm of advanced JavaScript applications. That means learning to use a few additional tools if you haven't already:
- **Node Package Manager (NPM)**: Lisez le [Getting Started guide](https://docs.npmjs.com/getting-started/what-is-npm) section _10: Uninstalling global packages_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puisque nous ne traduisons pas « Getting Started guide » car c'est à priori le titre du guide, il faut l'introduire « en plus » dans la traduction je pense, soit :

Lisez le guide NPM Getting Started guide à la section 10: Uninstalling global packages.


- **Node Package Manager (NPM)**: Read the [Getting Started guide](https://docs.npmjs.com/getting-started/what-is-npm) through section _10: Uninstalling global packages_.
- **Modern JavaScript with ES2015/16**: Lisez le guide Babel [Learn ES2015 guide](https://babeljs.io/docs/learn-es2015/). Vous n'avez pas besoin de mémoriser chacune des fonctionnalités maintenant, mais gardez cette page en référence pour pouvoir y revenir.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaScript moderne avec ES2015/16


- **Modern JavaScript with ES2015/16**: Read through Babel's [Learn ES2015 guide](https://babeljs.io/docs/learn-es2015/). You don't have to memorize every feature right now, but keep this page as a reference you can come back to.
Une fois que vous aurez pris une journée pour vous plonger dans ces ressources, nous vous recommandons d'essayer le template de projet [webpack-simple](https://github.com/vuejs-templates/webpack-simple). Suivez les instructions et vous devriez avoir en un clin d'oeil un projet Vue avec des composants `.vue` , ES2015 et du hot-reloading !

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rechargement à chaud


After you've taken a day to dive into these resources, we recommend checking out the [webpack-simple](https://github.com/vuejs-templates/webpack-simple) template. Follow the instructions and you should have a Vue project with `.vue` components, ES2015 and hot-reloading running in no time!
Ce template de projet utilise [Webpack](https://webpack.github.io/), un empaqueteur de modules qui prend des "modules" et les empaquette dans votre application finale. Pour en apprendre plus sur Webpack, [cette vidéo](https://www.youtube.com/watch?v=WQue1AN93YU) est une bonne introduction. Une fois que vous aurez les bases, vous pourrez aussi parcourir [ce cours sur Egghead.io](https://egghead.io/courses/using-webpack-for-production-javascript-applications).

The template uses [Webpack](https://webpack.github.io/), a module bundler that takes a number of "modules" and then bundles them into your final application. To learn more about Webpack itself, [this video](https://www.youtube.com/watch?v=WQue1AN93YU) offers a good intro. Once you get past the basics, you might also want to check out [this advanced Webpack course on Egghead.io](https://egghead.io/courses/using-webpack-for-production-javascript-applications).
Dans Webpack, chaque module peut être transformé par un "loader" avant d'être inclus dans le paquet, et Vue offre le plugin [vue-loader](https://github.com/vuejs/vue-loader) pour traduire les composants monofichier `.vue`. Le template de projet [webpack-simple](https://github.com/vuejs-templates/webpack-simple) a déjà tout configuré pour vous, mais si vous souhaitez en apprendre plus sur le fonctionnement des composants `.vue` avec Webpack, vous pouvez lire [la documentation de vue-loader](https://vue-loader.vuejs.org).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monofichiers


In Webpack, each module can be transformed by a "loader" before being included in the bundle, and Vue offers the [vue-loader](https://github.com/vuejs/vue-loader) plugin to take care of translating `.vue` single-file components. The [webpack-simple](https://github.com/vuejs-templates/webpack-simple) template has already set up everything for you, but if you'd like to learn more about how `.vue` components work with Webpack, you can read [the docs for vue-loader](https://vue-loader.vuejs.org).
### Pour les utilisateurs avancés

### For Advanced Users
Que vous préfériez Webpack ou Browserify, nous avons des templates documentés à la fois pour les projets simples et les projets plus complexes. Nous vous recommandans d'explorer [github.com/vuejs-templates](https://github.com/vuejs-templates), de choisir un template qui vous convient et de suivre les instructions du README pour générer un nouveau projet avec [vue-cli](https://github.com/vuejs/vue-cli).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommandons


Whether you prefer Webpack or Browserify, we have documented templates for both simple and more complex projects. We recommend browsing [github.com/vuejs-templates](https://github.com/vuejs-templates), picking a template that's right for you, then following the instructions in the README to generate a new project with [vue-cli](https://github.com/vuejs/vue-cli).