Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-09-03 17:06:57 +0300
committerKushal Pandya <kushalspandya@gmail.com>2019-09-03 17:06:57 +0300
commit015efb0f719d3b4a7bec82dec2d2f912985a6c0f (patch)
tree63ed24bc6aa39649d5e9f3b3693de5274fb6f19c /scripts/frontend
parentbc26349b76ccde5dc0edba19ab48c6bd0d3f8adf (diff)
Improve output for yarn integrity check
Diffstat (limited to 'scripts/frontend')
-rwxr-xr-xscripts/frontend/check_dependencies.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/frontend/check_dependencies.sh b/scripts/frontend/check_dependencies.sh
new file mode 100755
index 00000000000..64e7cf9da52
--- /dev/null
+++ b/scripts/frontend/check_dependencies.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+if ! yarn check --integrity 2>&1 > /dev/null
+then
+ echo
+ echo " $(tput setaf 1)yarn check --integrity$(tput sgr0) failed!"
+ echo " Your dependencies probably don't match the yarn.lock file."
+ echo " Please run $(tput setaf 2)yarn install$(tput sgr0) and try again."
+ echo
+ exit 1
+fi