mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
Reorg script moving in folders (#4791)
* organize script in folder part 1 * improve test e2e * fix smart build script * fix relative path
This commit is contained in:
parent
cccd95562c
commit
ce60915fd9
@ -18,7 +18,7 @@
|
|||||||
"01s": "",
|
"01s": "",
|
||||||
"unit-test": "concurrently \"ng test content-services --watch=false\" \"ng test process-services --watch=false\" \"ng test core --watch=false\" \"ng test extensions --watch=false\" \"ng test insights --watch=false\" \"ng test process-services-cloud --watch=false\" ",
|
"unit-test": "concurrently \"ng test content-services --watch=false\" \"ng test process-services --watch=false\" \"ng test core --watch=false\" \"ng test extensions --watch=false\" \"ng test insights --watch=false\" \"ng test process-services-cloud --watch=false\" ",
|
||||||
"prepublishOnly": "npm run build-lib",
|
"prepublishOnly": "npm run build-lib",
|
||||||
"build-lib": "./scripts/ng-packagr.sh",
|
"build-lib": "./scripts/build/build-all-lib.sh",
|
||||||
"bundlesize-check": "bundlesize",
|
"bundlesize-check": "bundlesize",
|
||||||
"affected:libs": "./node_modules/.bin/nx affected:libs",
|
"affected:libs": "./node_modules/.bin/nx affected:libs",
|
||||||
"webpack-bundle-analyzer": "webpack-bundle-analyzer demo-shell/dist/stats.json",
|
"webpack-bundle-analyzer": "webpack-bundle-analyzer demo-shell/dist/stats.json",
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
- [Quick examples](#quick-examples)
|
- [Quick examples](#quick-examples)
|
||||||
- [start.sh Demo shell script](#start.sh)
|
- [start.sh Demo shell script](#start.sh)
|
||||||
- [Ng2 components framework alfresco build](#npm-build-all.sh)
|
- [Ng2 components framework alfresco build](#npm-build-all.sh)
|
||||||
- [Clean components and Demo](#npm-clean.sh)
|
|
||||||
|
|
||||||
The Alfresco application development framework comes with a demo project that you can run to get a
|
The Alfresco application development framework comes with a demo project that you can run to get a
|
||||||
feel of what's available.
|
feel of what's available.
|
||||||
@ -205,26 +204,9 @@ The default behaviour of the ***npm-build-all.sh*** install node_modules and bui
|
|||||||
./npm-build-all.sh -si
|
./npm-build-all.sh -si
|
||||||
```
|
```
|
||||||
|
|
||||||
* Clean all your local components and the demo shell:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
./npm-clean.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
For development environment configuration please refer to [project docs](../demo-shell/README.md).
|
For development environment configuration please refer to [project docs](../demo-shell/README.md).
|
||||||
|
|
||||||
# npm-clean.sh
|
|
||||||
|
|
||||||
***npm-clean.sh*** clean all the projects folders : lib and demo-shell.
|
|
||||||
|
|
||||||
## Options
|
|
||||||
|
|
||||||
| Option | Description |
|
|
||||||
| --- | --- |
|
|
||||||
| -h or --help | show the help |
|
|
||||||
|
|
||||||
# npm-check-bundles.sh
|
|
||||||
|
|
||||||
***npm-check-bundles.sh*** check the bundles in the package npm are present
|
***npm-check-bundles.sh*** check the bundles in the package npm are present
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
@ -25,10 +25,10 @@ echo "====== Run process-services-cloud ====="
|
|||||||
./build-process-services-cloud.sh
|
./build-process-services-cloud.sh
|
||||||
|
|
||||||
echo "====== Run testing ====="
|
echo "====== Run testing ====="
|
||||||
./build-testing.sh
|
./build-testing.sh
|
||||||
|
|
||||||
echo "====== Copy schema ====="
|
echo "====== Copy schema ====="
|
||||||
|
|
||||||
cp ../lib/core/app-config/schema.json ../lib/dist/core/app.config.schema.json
|
cp ../../lib/core/app-config/schema.json ../../lib/dist/core/app.config.schema.json
|
||||||
|
|
||||||
npm run bundlesize-check
|
npm run bundlesize-check
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Content Services ======"
|
echo "====== Content Services ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Core ======"
|
echo "====== Core ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Extensions ======"
|
echo "====== Extensions ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Insights ======"
|
echo "====== Insights ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Process Services Cloud ======"
|
echo "====== Process Services Cloud ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Process Services ======"
|
echo "====== Process Services ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
cd $DIR/..
|
cd $DIR/../..
|
||||||
|
|
||||||
echo "====== Testing ======"
|
echo "====== Testing ======"
|
||||||
echo "====== Build ======"
|
echo "====== Build ======"
|
@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
|
|
||||||
eval EXEC_CLEAN_DEMO=true
|
|
||||||
|
|
||||||
show_help() {
|
|
||||||
echo "Usage: npm-clean.sh"
|
|
||||||
echo ""
|
|
||||||
}
|
|
||||||
|
|
||||||
while [[ $1 == -* ]]; do
|
|
||||||
case "$1" in
|
|
||||||
-h|--help|-\?) show_help; exit 0;;
|
|
||||||
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
npm install rimraf
|
|
||||||
|
|
||||||
cd "$DIR/../"
|
|
||||||
npm run clean-lock
|
|
||||||
npm run clean
|
|
||||||
|
|
||||||
cd ${DIR}
|
|
@ -11,7 +11,7 @@ eval projects=( "@alfresco/adf-core"
|
|||||||
"@alfresco/adf-extensions" )
|
"@alfresco/adf-extensions" )
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: npm-clean.sh"
|
echo "Usage: npm-move-tag.sh"
|
||||||
echo ""
|
echo ""
|
||||||
echo "-v version package to apply new tag"
|
echo "-v version package to apply new tag"
|
||||||
echo "-t new tag name to add"
|
echo "-t new tag name to add"
|
||||||
|
@ -48,7 +48,7 @@ libs=(`echo $affected | sed 's/^$/\n/g'`)
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "extensions$" ] ; then
|
if [ "$i" == "extensions$" ] ; then
|
||||||
./scripts/build-extensions.sh || exit 1;
|
./scripts/build/build-extensions.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "core$" ] ; then
|
if [ "$i" == "core$" ] ; then
|
||||||
./scripts/build-core.sh || exit 1;
|
./scripts/build/build-core.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "content-services$" ] ; then
|
if [ "$i" == "content-services$" ] ; then
|
||||||
./scripts/build-content-services.sh || exit 1;
|
./scripts/build/build-content-services.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "process-services$" ] ; then
|
if [ "$i" == "process-services$" ] ; then
|
||||||
./scripts/build-process-services.sh || exit 1;
|
./scripts/build/build-process-services.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "process-services-cloud$" ] ; then
|
if [ "$i" == "process-services-cloud$" ] ; then
|
||||||
./scripts/build-process-services-cloud.sh || exit 1;
|
./scripts/build/build-process-services-cloud.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "insights$" ] ; then
|
if [ "$i" == "insights$" ] ; then
|
||||||
./scripts/build-insights.sh || exit 1;
|
./scripts/build/build-insights.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -96,6 +96,6 @@ done
|
|||||||
for i in "${libs[@]}"
|
for i in "${libs[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "testing$" ] ; then
|
if [ "$i" == "testing$" ] ; then
|
||||||
./scripts/build-testing.sh || exit 1;
|
./scripts/build/build-testing.sh || exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -91,7 +91,7 @@ set_timeout(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_save_screenshot(){
|
set_save_screenshot(){
|
||||||
SAVE_SCREENSHOT=true
|
export SAVE_SCREENSHOT=true
|
||||||
}
|
}
|
||||||
|
|
||||||
set_development(){
|
set_development(){
|
||||||
@ -124,7 +124,7 @@ lite_server(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
max_instances(){
|
max_instances(){
|
||||||
MAXINSTANCES=$1
|
export MAXINSTANCES=$1
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_control_flow(){
|
disable_control_flow(){
|
||||||
@ -176,12 +176,10 @@ done
|
|||||||
rm -rf ./e2e/downloads/
|
rm -rf ./e2e/downloads/
|
||||||
rm -rf ./e2e-output/screenshots/
|
rm -rf ./e2e-output/screenshots/
|
||||||
|
|
||||||
export SAVE_SCREENSHOT=$SAVE_SCREENSHOT
|
|
||||||
export TIMEOUT=$TIMEOUT
|
export TIMEOUT=$TIMEOUT
|
||||||
|
|
||||||
export SELENIUM_SERVER=$SELENIUM_SERVER
|
export SELENIUM_SERVER=$SELENIUM_SERVER
|
||||||
|
|
||||||
export MAXINSTANCES=$MAXINSTANCES
|
|
||||||
export SELENIUM_PROMISE_MANAGER=$SELENIUM_PROMISE_MANAGER
|
export SELENIUM_PROMISE_MANAGER=$SELENIUM_PROMISE_MANAGER
|
||||||
|
|
||||||
if $EXEC_VERSION_JSAPI == true; then
|
if $EXEC_VERSION_JSAPI == true; then
|
||||||
|
@ -6,10 +6,10 @@ cd $DIR/../../../
|
|||||||
|
|
||||||
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
|
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
|
||||||
#then
|
#then
|
||||||
node ./scripts/move-dist-folder.js --base-href $TRAVIS_BUILD_NUMBER && (./scripts/pr-publish.sh -n $TRAVIS_BUILD_NUMBER -r $REPO_DOCKER -u $USERNAME_DOCKER -p $PASSWORD_DOCKER || exit 1);
|
node ./scripts/travis/deploy/move-dist-folder.js --base-href $TRAVIS_BUILD_NUMBER && (./scripts/travis/deploy/pr-publish.sh -n $TRAVIS_BUILD_NUMBER -r $REPO_DOCKER -u $USERNAME_DOCKER -p $PASSWORD_DOCKER || exit 1);
|
||||||
#fi;
|
#fi;
|
||||||
|
|
||||||
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
|
#if [ "$TRAVIS_PULL_REQUEST" != "false" ];
|
||||||
#then
|
#then
|
||||||
(node --no-deprecation ./scripts/pr-deploy.js -n $TRAVIS_BUILD_NUMBER -u $RANCHER_TOKEN -p $RANCHER_SECRET -s $REPO_RANCHER --image "docker:$REPO_DOCKER/adf/demo-shell:$TRAVIS_BUILD_NUMBER" --env $ENVIRONMENT_NAME -r $ENVIRONMENT_URL || exit 1);
|
(node --no-deprecation ./scripts/travis/deploy/pr-deploy.js -n $TRAVIS_BUILD_NUMBER -u $RANCHER_TOKEN -p $RANCHER_SECRET -s $REPO_RANCHER --image "docker:$REPO_DOCKER/adf/demo-shell:$TRAVIS_BUILD_NUMBER" --env $ENVIRONMENT_NAME -r $ENVIRONMENT_URL || exit 1);
|
||||||
#fi;
|
#fi;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user