mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
337ac2f6a0
Take advantage of Yarn's preservation of links while installing and set up links first and install second. This should result in a small speedup since we no longer install the published SDKs just to replace them on the next line.
36 lines
591 B
Bash
Executable file
36 lines
591 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
|
nvm use 10
|
|
|
|
set -x
|
|
|
|
scripts/fetchdep.sh matrix-org matrix-js-sdk
|
|
|
|
pushd matrix-js-sdk
|
|
yarn link
|
|
yarn install
|
|
popd
|
|
|
|
yarn link matrix-js-sdk
|
|
|
|
# install the other dependencies
|
|
yarn install
|
|
|
|
# run the mocha tests
|
|
yarn test --no-colors
|
|
|
|
# run eslint
|
|
yarn lintall -f checkstyle -o eslint.xml || true
|
|
|
|
# re-run the linter, excluding any files known to have errors or warnings.
|
|
yarn lintwithexclusions
|
|
|
|
# delete the old tarball, if it exists
|
|
rm -f matrix-react-sdk-*.tgz
|
|
|
|
# build our tarball
|
|
yarn pack
|