From 2273b9b475b712f5dacf8c3530a3b0c94eddfe94 Mon Sep 17 00:00:00 2001
From: Baptiste Lemoine <contact@cipherbliss.com>
Date: Sun, 5 Apr 2020 17:12:01 +0200
Subject: [PATCH] :book: add Readme infos about development hot reload

---
 README.md    | 12 ++++++++----
 package.json |  5 +++--
 yarn.lock    |  3 ++-
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index d247a6b..44dcce4 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,8 @@ Duniter graphical interface. This is a developement package which is embedded in
 > Requires [Yarn](https://classic.yarnpkg.com/en/docs/install/)
 
 ```bash
-npm i -g nvm yarn
+npm i -g nvm yarn bower
+bower install
 nvm install 9
 nvm use 9
 yarn --pure-lockfile
@@ -17,9 +18,12 @@ yarn --pure-lockfile
 ## Run
 
 ```bash
-node run.js direct_webstart
+firefox http://localhost:9220 &
+yarn run webstart
 ```
-or
+
+## Dev server with hot reload on file save
 ```bash
-node_modules/brunch/bin/brunch watch --server
+firefox http://localhost:9220 &
+yarn run start
 ```
diff --git a/package.json b/package.json
index bec9b2f..1a6e6cd 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
     "build": "bower install && brunch build",
     "b": "brunch build",
     "watch": "brunch watch",
-    "start": "cd cesium && npm start",
+    "start": "brunch watch --server",
+    "cesium": "cd cesium && npm start",
     "webstart": "node run.js direct_webstart",
     "test": "mocha --growl tests/"
   },
@@ -55,7 +56,7 @@
     "brunch": "2.10.9",
     "core-util-is": "1.0.2",
     "css-brunch": "2.0.0",
-    "duniter": "1.7.x",
+    "duniter": "^1.7.21",
     "fb-flo-brunch": "1.7.22",
     "jade-brunch": "2.0.0",
     "javascript-brunch": "2.0.0",
diff --git a/yarn.lock b/yarn.lock
index 8aff82f..9959267 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2115,9 +2115,10 @@ domain-browser@~1.1.7:
   version "1.1.7"
   resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc"
 
-duniter@1.7.x:
+duniter@^1.7.21:
   version "1.7.21"
   resolved "https://registry.yarnpkg.com/duniter/-/duniter-1.7.21.tgz#492f1a9ab6dccf22632d5cd7cd11af9a30cccfe4"
+  integrity sha512-4NyVGbb/ScHU96YN1f35IfT0rI0c7Ixr+fqXdAzEhr1AUJ3At5ZGroGhg5ZAGWYDXc/GRDk8nQtMbibcv8T10g==
   dependencies:
     "@types/leveldown" "^4.0.0"
     "@types/levelup" "^3.1.0"
-- 
GitLab