mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Provide a way to pass buildArgs to the docker build * Create folder in case does not exist
29 lines
580 B
Bash
Executable File
29 lines
580 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR/../../lib/cli/
|
|
|
|
npm install -g typescript
|
|
|
|
echo "====== Cli ======"
|
|
echo "====== Build ======"
|
|
npm run dist
|
|
|
|
cd $DIR/../../
|
|
if [ -e "./lib/dist/cli" ];
|
|
then
|
|
rm -rf "./lib/dist/cli" ;
|
|
else if [ ! -d "./lib/dist" ];
|
|
then
|
|
mkdir ./lib/dist
|
|
fi
|
|
fi
|
|
|
|
cp -R ./lib/cli/dist lib/dist/cli/
|
|
exit 0
|
|
echo "====== Move to node_modules ======"
|
|
rm -rf ./node_modules/@alfresco/adf-cli/ && \
|
|
mkdir -p ./node_modules/@alfresco/adf-cli/ && \
|
|
cp -R ./lib/dist/cli/* ./node_modules/@alfresco/adf-cli/
|