Merged
Conversation
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
rspt
approved these changes
Sep 28, 2017
forresst
requested changes
Sep 28, 2017
en/guide/commands.md
Outdated
|
|
||
| #### Using in package.json | ||
| - **`--config-file` ou `-c`:** spécifier le chemin vers le fichier `nuxt.config.js`. | ||
| - **`--spa` ou `-s`:** lancer la commande en mode application monopage en désactivant le rendu côté serveur. |
There was a problem hiding this comment.
J'aurais conjugué au présent, cela indique l'action qui se passe quand on exécute les commandes :
spécifie le chemin ....
lance la commande ....
à rediscuter
en/guide/commands.md
Outdated
| Ensuite, vous pouvez lancer vos commandes via `npm run <command>` (exemple : `npm run dev`). | ||
|
|
||
| **PRO TIP:** To pass arguments to npm commands, you need an extra `--` after script name (example: `npm run dev -- --spa`) | ||
| <p class="Alert Alert--nuxt-green"><b>Astuce :</b> pour passer des arguments à une commande npm, vous devez utiliser un <code>--</code> supplémentaire au nom de script (exemple : <code>npm run dev -- --spa</code>).</p> |
There was a problem hiding this comment.
supplémentaire au après le nom de script
en/guide/commands.md
Outdated
| ### Déploiement pour un rendu côté serveur (universelle) | ||
|
|
||
| To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands: | ||
| Pour déployer, au lieu d'exécuter `nuxt`, vous voulez probablement construire à l'avance. Par conséquent, la construction et le démarrage sont des commandes distinctes : |
There was a problem hiding this comment.
vous voulez probablement faire d'abord la construction construire à l'avance
en/guide/commands.md
Outdated
| Il créera un dossier `dist` avec tout à l'intérieur prêt à être déployé sur un hébergement statique. | ||
|
|
||
| <div class="Alert">When generating your web application with `nuxt generate`, [the context](/api/context) given to [data()](/guide/async-data#the-data-method) and [fetch()](/guide/vuex-store#the-fetch-method) will not have `req` and `res`.</div> | ||
| Si vous avez un projet avec des [routes dynamiques](/guide/routing#dynamic-routes), regarder la [configuration de la commande generate](/api/configuration-generate) afin de dire à Nuxt.js comment générer ces routes dynamiques. |
en/guide/commands.md
Outdated
|
|
||
| The SPA idea is simple! When spa mode is enabled using `mode: 'spa'` or `--spa` flag and we run build, | ||
| generation automatically starts after the build, but this time without pages content and only common meta and resource links. | ||
| `nuxt generate` a toujours besoin du SSR pendant le temps de génération afin de prérendre nos pages dans le but d'obtenir un chargement de page rapide et du contenu solide pour la SEO. Le contenu est généré lors de la *phase de build*. Il ne faut par exemple pas l'utiliser pour les applications ou le contenu dépend de l'authentification de l'utilisateur ou pour une API en temps réel (du moins pour le premier chargement). |
forresst
approved these changes
Sep 28, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Une autre !