mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Improves the developer message when generating a test app to include the next steps to running the test app. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
44 lines
1.1 KiB
Bash
Executable File
44 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# The directory where the source
|
|
# for each specific application is.
|
|
APPS_DIR="apps"
|
|
|
|
# The directory where the
|
|
# base application logic is
|
|
BASE_DIR="base"
|
|
BUILD_DIR="build"
|
|
|
|
# The specific application
|
|
# we are building
|
|
APP_DIR="${1}"
|
|
|
|
# The full path to the specific application.
|
|
FULL_APP_DIR="${APPS_DIR}/${APP_DIR}/."
|
|
|
|
# The full path to the base application.
|
|
FULL_BASE_DIR="${BASE_DIR}/."
|
|
|
|
# The full path to the built application.
|
|
BUILD_APP_DIR="${BUILD_DIR}/${APP_DIR}/"
|
|
|
|
# Make the build directory if it does not already exist.
|
|
mkdir -p $BUILD_DIR
|
|
|
|
# First we need to copy the base application
|
|
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"
|