From 2a35d460bbd3398e58b1600041237e329fdc0870 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Mon, 29 Jan 2024 21:37:42 -0500 Subject: [PATCH] chore(test-apps): improve developer message with test apps --- packages/angular/test/build.sh | 10 +++++++++- packages/react/test/build.sh | 10 ++++++++++ packages/vue/test/build.sh | 10 ++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/angular/test/build.sh b/packages/angular/test/build.sh index d91b9cb1771..7507b94db00 100755 --- a/packages/angular/test/build.sh +++ b/packages/angular/test/build.sh @@ -32,4 +32,12 @@ cp -R $FULL_BASE_DIR $BUILD_APP_DIR # will override any files in the base application. cp -R $FULL_APP_DIR $BUILD_APP_DIR -echo "Copied test app files for ${APP_DIR}" +GREEN='\033[0;32m' +NC='\033[0m' # No Color + +# Print a message with instructions for developers. +echo -e "\n${GREEN}Successfully generated test app at: $BUILD_APP_DIR \n${NC}" +echo -e "Please follow these steps:" +echo -e " 1. cd $BUILD_APP_DIR" +echo -e " 2. Install dependencies with: pnpm install" +echo -e " 3. Run the dev server with: pnpm start\n" diff --git a/packages/react/test/build.sh b/packages/react/test/build.sh index a646dc74ba8..16078c34e28 100755 --- a/packages/react/test/build.sh +++ b/packages/react/test/build.sh @@ -31,3 +31,13 @@ cp -R $FULL_BASE_DIR $BUILD_APP_DIR # Then we can copy the specific app which # will override any files in the base application. cp -R $FULL_APP_DIR $BUILD_APP_DIR + +GREEN='\033[0;32m' +NC='\033[0m' # No Color + +# Print a message with instructions for developers. +echo -e "\n${GREEN}Successfully generated test app at: $BUILD_APP_DIR \n${NC}" +echo -e "Please follow these steps:" +echo -e " 1. cd $BUILD_APP_DIR" +echo -e " 2. Install dependencies with: pnpm install" +echo -e " 3. Run the dev server with: pnpm dev\n" diff --git a/packages/vue/test/build.sh b/packages/vue/test/build.sh index a646dc74ba8..16078c34e28 100755 --- a/packages/vue/test/build.sh +++ b/packages/vue/test/build.sh @@ -31,3 +31,13 @@ cp -R $FULL_BASE_DIR $BUILD_APP_DIR # Then we can copy the specific app which # will override any files in the base application. cp -R $FULL_APP_DIR $BUILD_APP_DIR + +GREEN='\033[0;32m' +NC='\033[0m' # No Color + +# Print a message with instructions for developers. +echo -e "\n${GREEN}Successfully generated test app at: $BUILD_APP_DIR \n${NC}" +echo -e "Please follow these steps:" +echo -e " 1. cd $BUILD_APP_DIR" +echo -e " 2. Install dependencies with: pnpm install" +echo -e " 3. Run the dev server with: pnpm dev\n"