From 2908f26ca63a93cdb6815a34005ab5ad9faff7a4 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Fri, 20 Jan 2017 12:04:57 +0100
Subject: [PATCH] [fix] duniter-ui better way to install

---
 appveyor.yml               | 1 +
 ci/travis/before_deploy.sh | 1 +
 package.json               | 1 -
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/appveyor.yml b/appveyor.yml
index 9f88f445e..f4bffb658 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -48,6 +48,7 @@ after_test:
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v%ADDON_VERSION%-win32-x64\node_sqlite3.node /Y
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../..
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm prune --production
+  - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-ui@0.3.1 --save --production
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] rd /s /q %cd%\node_modules\duniter-ui\node_modules
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ..
   - if [%APPVEYOR_REPO_TAG_NAME%] neq [] mkdir duniter_release
diff --git a/ci/travis/before_deploy.sh b/ci/travis/before_deploy.sh
index 180477133..2cf783d5d 100755
--- a/ci/travis/before_deploy.sh
+++ b/ci/travis/before_deploy.sh
@@ -17,6 +17,7 @@ if [[ ! -f before_deploy ]]; then
 
   # Clean test and UI packages
   npm prune --production
+  npm install duniter-ui@0.3.1 --save --production
   rm -Rf node_modules/duniter-ui/node_modules
 
   SRC=`pwd`
diff --git a/package.json b/package.json
index 1f1c2c899..1804b990a 100644
--- a/package.json
+++ b/package.json
@@ -71,7 +71,6 @@
   },
   "devDependencies": {
     "coveralls": "2.11.4",
-    "duniter-ui": "^0.3.0",
     "eslint": "3.13.1",
     "eslint-plugin-mocha": "4.8.0",
     "istanbul": "0.4.0",
-- 
GitLab