installs to project directory now
This commit is contained in:
		
							parent
							
								
									8e677c05f3
								
							
						
					
					
						commit
						815a551a07
					
				@ -31,5 +31,3 @@ return new class implements ServiceProviderInterface {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
EOM
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@ -46,6 +46,15 @@ if [[ ! "$name" =~ ^[a-z0-9_]+$ ]]; then
 | 
			
		||||
    exit 1
 | 
			
		||||
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
 | 
			
		||||
#################################################################################
 | 
			
		||||
@ -68,6 +77,5 @@ source "$script_dir/component_parts/displaycontroller.sh"
 | 
			
		||||
source "$script_dir/component_parts/view.sh"
 | 
			
		||||
source "$script_dir/component_parts/defaultview.sh"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo "Component framework generated successfully!"
 | 
			
		||||
echo "You should manually edit the manifest file before checkin"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user