Do riot-web setup in a different order

... in an effort to stop npm cocking it up.
This commit is contained in:
Richard van der Hoff 2017-01-19 18:23:34 +00:00
parent af4ef1da8b
commit 33d741e83d

View file

@ -6,15 +6,20 @@
set -ev set -ev
git clone --depth=1 --branch develop https://github.com/vector-im/riot-web.git riot-web RIOT_WEB_DIR=riot-web
cd riot-web REACT_SDK_DIR=`pwd`
git clone --depth=1 --branch develop https://github.com/vector-im/riot-web.git \
"$RIOT_WEB_DIR"
cd "$RIOT_WEB_DIR"
mkdir node_modules mkdir node_modules
ln -s ../.. node_modules/matrix-react-sdk
npm install npm install
(cd node_modules/matrix-js-sdk && npm install) (cd node_modules/matrix-js-sdk && npm install)
# https://github.com/webpack/webpack/issues/1472 workaround rm -r node_modules/matrix-react-sdk
(cd node_modules/matrix-react-sdk && npm install source-map-loader) ln -s "$REACT_SDK_DIR" node_modules/matrix-react-sdk
npm run test npm run test