installs to project directory now

This commit is contained in:
Nick Yeoman 2023-06-06 19:01:24 -07:00
parent 8e677c05f3
commit 815a551a07
2 changed files with 9 additions and 3 deletions

View File

@ -31,5 +31,3 @@ return new class implements ServiceProviderInterface {
}; };
EOM EOM

View File

@ -46,6 +46,15 @@ if [[ ! "$name" =~ ^[a-z0-9_]+$ ]]; then
exit 1 exit 1
fi fi
# Check if Components directory exists (development)
if [ ! -d "development" ]; then
echo "Development directory not found. Creating the directory..."
mkdir "development"
fi
# Change the current working directory to Components
cd "development" || exit
################################################################################# #################################################################################
# Do the work # Do the work
################################################################################# #################################################################################
@ -68,6 +77,5 @@ source "$script_dir/component_parts/displaycontroller.sh"
source "$script_dir/component_parts/view.sh" source "$script_dir/component_parts/view.sh"
source "$script_dir/component_parts/defaultview.sh" source "$script_dir/component_parts/defaultview.sh"
echo "Component framework generated successfully!" echo "Component framework generated successfully!"
echo "You should manually edit the manifest file before checkin" echo "You should manually edit the manifest file before checkin"