summaryrefslogtreecommitdiff
path: root/bin/setup
diff options
context:
space:
mode:
authorDavid Mehren2020-11-17 20:32:30 +0100
committerDavid Mehren2020-11-17 20:47:18 +0100
commitca0f1f9a4e1351cc8ab55e3af746adbc6495b2d5 (patch)
tree9afdc0ee0ac3c1a1d5db1c1b072ac80f1534fbde /bin/setup
parent1529d54b4310284b4be303a5614fb43e6bc09e85 (diff)
Prettify messages in setup script
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rwxr-xr-xbin/setup19
1 files changed, 10 insertions, 9 deletions
diff --git a/bin/setup b/bin/setup
index c73aeeea..238b42e9 100755
--- a/bin/setup
+++ b/bin/setup
@@ -13,10 +13,11 @@ fi
if ! type yarn > /dev/null
then
cat << EOF
-yarn is not installed, please install Node.js, npm and yarn.
-Read more on Node.js official website: https://nodejs.org
-And for yarn package manager at: https://yarnpkg.com/en/
-Setup will not be run
+FATAL: Yarn could not be found.
+
+Please follow the official installation instructions at
+https://classic.yarnpkg.com/en/docs/install
+and try again.
EOF
exit 1
fi
@@ -25,7 +26,7 @@ if version_lt "$(yarn --version)" '1.22.0'; then
cat <<EOF
FATAL: Your Yarn version is outdated.
-Please upgrade to a version newer than 1.22.0.
+Please upgrade to a version newer than 1.22.0 and try again.
See https://classic.yarnpkg.com/en/docs/install for instructions.
EOF
exit 1
@@ -35,13 +36,13 @@ if version_lt "$(node --version)" 'v10.13.0'; then
cat <<EOF
FATAL: Your Node.js version is outdated.
-Please upgrade to version 10.13 or higher.
-We recommend running the latest LTS release.
+Please upgrade to version 10.13 or higher and try again.
+We recommend running the latest LTS release, see https://nodejs.org/en/about/releases/ for details.
EOF
exit 1
fi
-echo "copy config files"
+echo "Copying config files..."
if [ ! -f config.json ]; then
cp config.json.example config.json
fi
@@ -50,7 +51,7 @@ if [ ! -f .sequelizerc ]; then
cp .sequelizerc.example .sequelizerc
fi
-echo "install packages"
+echo "Installing packages..."
yarn install --pure-lockfile
yarn install --production=false --pure-lockfile