From 7e9d3f259d5dac0d17ca4f3d6844e8cfbb7e33d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 May 2019 15:48:48 +0200 Subject: Move CLI dependencies in their own package.json --- scripts/setup/cli.sh | 16 ++++++++++++++++ scripts/travis.sh | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 scripts/setup/cli.sh (limited to 'scripts') diff --git a/scripts/setup/cli.sh b/scripts/setup/cli.sh new file mode 100755 index 000000000..94ca3c441 --- /dev/null +++ b/scripts/setup/cli.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -eu + +NOCLIENT=1 yarn install --pure-lockfile + +rm -rf ./dist/server/tools/ + +( + cd ./server/tools + yarn install --pure-lockfile +) + +npm run tsc -- --build ./server/tools/tsconfig.json + +cp -r "./server/tools/node_modules" "./dist/server/tools" diff --git a/scripts/travis.sh b/scripts/travis.sh index c38bd2cab..454ac5e14 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -28,7 +28,8 @@ elif [ "$1" = "api-3" ]; then npm run build:server sh ./server/tests/api/travis-3.sh 2 elif [ "$1" = "api-4" ]; then - npm run build:server + npm run setup:cli + npm run build-server sh ./server/tests/api/travis-4.sh 2 elif [ "$1" = "lint" ]; then npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" -- cgit v1.2.3