updated newproject for React and PHP support.

This commit is contained in:
Joshua Ashton
2025-02-06 14:26:49 -07:00
parent 665681a1ec
commit 629dfd8d83
+18 -7
View File
@@ -119,9 +119,10 @@ elif [[ $LANG == "aspnet" ]]; then
elif [[ $LANG == "java" ]]; then elif [[ $LANG == "java" ]]; then
mkdir $NAME; mkdir $NAME;
cd $NAME; cd $NAME;
mark; # Bookmark new project.
gradle init gradle init
mark;
# Create a new HTML, CSS, JS project. # Create a new HTML, CSS, JS project.
elif [[ $LANG == "html" ]]; then elif [[ $LANG == "html" ]]; then
mkdir $NAME; mkdir $NAME;
@@ -129,7 +130,7 @@ elif [[ $LANG == "html" ]]; then
cp -r ~/templates/web/public_html . cp -r ~/templates/web/public_html .
cd public_html; cd public_html;
mark; # Bookmark new project. mark;
# Create a new JavaScript project. # Create a new JavaScript project.
elif [[ $LANG == "js" ]]; then elif [[ $LANG == "js" ]]; then
@@ -137,7 +138,7 @@ elif [[ $LANG == "js" ]]; then
cd $NAME; cd $NAME;
touch main.js; touch main.js;
mark; # Bookmark new project. mark;
# Create a new Python project. # Create a new Python project.
elif [[ $LANG == "python" ]]; then elif [[ $LANG == "python" ]]; then
@@ -145,6 +146,9 @@ elif [[ $LANG == "python" ]]; then
cd $NAME; cd $NAME;
touch main.py; touch main.py;
touch requirements.txt
python -m venv env
mark; mark;
# Create a new Flutter/Dart project. # Create a new Flutter/Dart project.
@@ -163,11 +167,18 @@ elif [[ $LANG == "go" ]]; then
go mod init; go mod init;
# Create a new Flutter/Dart project. elif [[ $LANG == "react" ]]; then
elif [[ $LANG == "php" ]]; then npm create vite@latest $NAME
mkdir $NAME
cd $NAME cd $NAME
cp -r ~/templates/web/php/index.php . npm install
mark
# Create a new PHP project.
elif [[ $LANG == "php" ]]; then
cp -r ~/templates/web/php/ $NAME
cd $NAME
composer init
mark mark
fi fi