-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
Ember application builds are created by the Ember CLI build pipeline. Just as with your application code, | ||
Ember CLI ships with a sensible set of defaults to compile and bundle the assets that can be deployed | ||
to production. Under the hood, this is accomplished using a series of Broccoli plugins, each of which | ||
can be configured in the `ember-cli-build.js` file at the root of your project. | ||
Les applications Ember sont compilées grâce à Ember CLI, responsable d'une succession d'étapes de | ||
compilation. Comme pour le code de votre application, Ember CLI embarque un ensemble de réglages par | ||
défaut afin de compiler et regrouper les ressources destinées à être déployées en production. En | ||
pratique, ceci est réalisé via plusieurs plugins Broccoli, chacun pouvant être configuré dans le | ||
fichier `ember-cli-build.js` se trouvant à la racine de votre projet. | ||
|
||
Ember CLI uses [Babel.js](https://babeljs.io/) for the compile step in this process. If you've used Babel | ||
before, you know that it comes with a large set of options, including the ability to configure | ||
"targets"; i.e. the environments in which your application is expected to run. | ||
For example, if your application is embedded in an [Electron app](https://www.electronjs.org), | ||
you might only care about compiling for the latest Chromium build. Or if your app targets Enterprise | ||
users, you may need to compile your JavaScript to older syntax that runs in IE11. | ||
Ember CLI utilise [Babel.js](https://babeljs.io) pour l'étape de compilation. Si vous avez déjà | ||
utilisé Babel auparavant, vous savez sûrement qu'un grand nombre de réglages est proposé, comme la | ||
possibilité de configurer des _targets_ : environnements dans lesquels votre application sera | ||
exécutée. Par exemple, si votre application est intégrée au sein d'une application | ||
[Electron](https://www.electronjs.org), il est possible que vous ne vouliez la compiler que pour la | ||
dernière version de Chromium. Ou alors, si votre application est destinée à des utilisateurs en | ||
entreprise, vous aurez peut-être besoin de compiler votre code JavaScript vers une syntaxe plus | ||
ancienne qui fonctionne sur IE11. | ||
|
||
For any of these cases, you can configure `ember build` to do The Right Thing. You can read more about | ||
this in [the Ember CLI Guides](https://cli.emberjs.com/release/advanced-use/build-targets/)! | ||
Pour chacun de ces cas, vous pouvez configurer la commande `ember build` pour que le nécessaire soit | ||
fait. Pour en savoir plus, consultez le [Guide Ember CLI](https://cli.emberjs.com/release/advanced-use/build-targets/) ! |