mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Update build documents
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
Cette page est également disponible en [Anglais](https://github.com/BoostIO/Boostnote/blob/master/docs/build.md), [Japonais](https://github.com/BoostIO/Boostnote/blob/master/docs/jp/build.md), [Coréen](https://github.com/BoostIO/Boostnote/blob/master/docs/ko/build.md), [Russe](https://github.com/BoostIO/Boostnote/blob/master/docs/ru/build.md), [Chinois Simplifié](https://github.com/BoostIO/Boostnote/blob/master/docs/zh_CN/build.md) et en [Allemand](https://github.com/BoostIO/Boostnote/blob/master/docs/de/build.md)
|
||||
|
||||
## Environnements
|
||||
* npm: 4.x
|
||||
* node: 7.x
|
||||
|
||||
Il est conseillé d'utiliser `npm v4.x` car `$ grunt pre-build` ne marche pas sur la `v5.x`.
|
||||
* npm: 6.x
|
||||
* node: 8.x
|
||||
|
||||
## Développement
|
||||
|
||||
@@ -20,17 +19,9 @@ $ yarn
|
||||
Build et start
|
||||
|
||||
```
|
||||
$ yarn run dev-start
|
||||
$ yarn run dev
|
||||
```
|
||||
|
||||
Cette commande lance `yarn run webpack` et `yarn run hot` en parallèle. Cela revient au même que si on utilisait ces deux commandes dans 2 terminaux.
|
||||
|
||||
La commande `webpack` va surveiller les changements de code et les appliquer automatiquement.
|
||||
|
||||
Si l'erreur suivante apparait : `Failed to load resource: net::ERR_CONNECTION_REFUSED`, relancez Boostnote.
|
||||
|
||||

|
||||
|
||||
> ### Notice
|
||||
> Il y a certains cas où vous voudrez relancer l'application manuellement.
|
||||
> 1. Quand vous éditez la méthode constructeur dans un composant
|
||||
@@ -43,8 +34,6 @@ Vous pouvez build le programme en utilisant `grunt`. Cependant, nous ne recomman
|
||||
|
||||
Nous avons donc préparé un script séparé qui va rendre un fichier exécutable.
|
||||
|
||||
Le build ne fonctionne pas sur `npm v5.3.0`. Il faut donc utiliser `npm v5.2.0` quand vous faites le build.
|
||||
|
||||
```
|
||||
grunt pre-build
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user