[AAE-11253] adf-cli - Get rid of build cli (#7932)

* Get rid of build cli

* Remove duplication

* Remove build-cli.sh script
This commit is contained in:
Maurizio Vitale 2022-10-31 13:55:52 +00:00 committed by GitHub
parent 65e0961a18
commit cebe2501fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 24 deletions

View File

@ -128,7 +128,6 @@ jobs:
name: "Demo Shell & Storybook :Build && dockerize"
before_script:
- NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx run cli:build --prod
- ./scripts/build/build-cli.sh
script:
# Build Demo shell & Storybook for production docker"
- NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --configuration production

View File

@ -868,7 +868,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
"cd lib/cli && npm i && npm run dist"
"cd lib/cli && npm i && npm run dist && nx run cli:copydist"
]
},
"configurations": {

View File

@ -8,7 +8,7 @@ echo "====== Run lib ====="
if [ "$CI" = "true" ]; then
echo "Building libs for production with NX_FLAG $NX_CALCULATION_FLAGS"
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell,cli,testing" || exit 1
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx affected:build $NX_CALCULATION_FLAGS --prod --exclude="demoshell,testing" || exit 1
else
echo "Building libs for development with NX_FLAG $NX_CALCULATION_FLAGS"
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx affected:build $NX_CALCULATION_FLAGS --exclude=demoshell || exit 1
@ -19,8 +19,3 @@ echo "====== run core ====="
echo "====== Run testing ====="
./scripts/build/build-testing.sh || exit 1
echo "====== Run Cli ====="
./scripts/build/build-cli.sh || exit 1

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../lib/cli/
echo "====== Cli ======"
cd $DIR/../../
cp -R ./lib/cli/dist dist/libs/cli/
cp ./lib/cli/README.md dist/libs/cli/README.md
echo "====== Cli Move to node_modules ======"
nx build cli
nx run cli:copydist