-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
645 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,30 @@ | |
"description": "The MERN App provides a versatile set of boilerplates that streamline the development process for various applications. Whether you're building a web app, mobile app, desktop app, Chrome extension, or an NPM package in JavaScript, our comprehensive templates will help you get started quickly and efficiently.", | ||
"scripts": { | ||
"deploy": "sh publish.sh", | ||
"app-upgrade": "sh app-upgrade.sh", | ||
"app-stop": "sh app-stop.sh", | ||
"library-upgrade": "sh library-upgrade.sh", | ||
"library-stop": "sh library-stop.sh" | ||
"app-clean": "sh scripts/app/sh-cleanup-projects.sh", | ||
"app-install": "sh scripts/app/sh-install-projects.sh", | ||
"app-start": "sh scripts/app/sh-start-projects.sh", | ||
"app-stop": "sh scripts/app/sh-stop-projects.sh", | ||
"app-upgrade": "sh scripts/app/sh-upgrade-projects.sh", | ||
"app-zip": "sh scripts/app/sh-zip-projects.sh", | ||
"library-clean": "sh scripts/library/sh-cleanup-projects.sh", | ||
"library-install": "sh scripts/library/sh-install-projects.sh", | ||
"library-start": "sh scripts/library/sh-start-projects.sh", | ||
"library-stop": "sh scripts/library/sh-stop-projects.sh", | ||
"library-upgrade": "sh scripts/library/sh-upgrade-projects.sh", | ||
"library-zip": "sh scripts/library/sh-zip-projects.sh", | ||
"packages-clean": "sh scripts/packages/sh-cleanup-projects.sh", | ||
"packages-install": "sh scripts/packages/sh-install-projects.sh", | ||
"packages-start": "sh scripts/packages/sh-start-projects.sh", | ||
"packages-stop": "sh scripts/packages/sh-stop-projects.sh", | ||
"packages-upgrade": "sh scripts/packages/sh-upgrade-projects.sh", | ||
"packages-zip": "sh scripts/packages/sh-zip-projects.sh", | ||
"snippets-clean": "sh scripts/snippets/sh-cleanup-projects.sh", | ||
"snippets-install": "sh scripts/snippets/sh-install-projects.sh", | ||
"snippets-start": "sh scripts/snippets/sh-start-projects.sh", | ||
"snippets-stop": "sh scripts/snippets/sh-stop-projects.sh", | ||
"snippets-upgrade": "sh scripts/snippets/sh-upgrade-projects.sh", | ||
"snippets-zip": "sh scripts/snippets/sh-zip-projects.sh" | ||
}, | ||
"author": "Vijay Pratap Singh <[email protected]> (https://mernjs.github.io/create-mern-app)", | ||
"license": "MIT", | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "app", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"clean-dev": "sh sh-cleanup-projects.sh", | ||
"install-dev": "sh sh-install-projects.sh", | ||
"start-dev": "sh sh-start-projects.sh", | ||
"stop-dev": "sh sh-stop-projects.sh", | ||
"upgrade-dev": "sh sh-upgrade-projects.sh", | ||
"zip-dev": "sh sh-zip-projects.sh" | ||
} | ||
} |
21 changes: 5 additions & 16 deletions
21
src/app/sh-cleanup-projects.sh → scripts/app/sh-cleanup-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/library/sh-install-projects.sh → scripts/app/sh-install-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/library/sh-start-projects.sh → scripts/app/sh-start-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/library/sh-stop-projects.sh → scripts/app/sh-stop-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/library/sh-upgrade-projects.sh → scripts/app/sh-upgrade-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Define the parent directory where all project directories are located | ||
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app" | ||
|
||
# Define the directory where the zip files will be stored | ||
zip_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/zip/app" | ||
|
||
# Create the zip directory if it doesn't exist | ||
mkdir -p "$zip_directory" | ||
|
||
# Use find to get a list of project directories dynamically (1 level deep) | ||
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*")) | ||
|
||
# Loop through each project directory to remove existing zip files and create new ones | ||
for project in "${projects[@]}"; do | ||
# Get the project name from the full path | ||
project_name=$(basename "$project") | ||
|
||
# Define the zip file name in the new directory | ||
zip_file="$zip_directory/${project_name}.zip" | ||
|
||
# Check if the zip file exists and remove it | ||
if [ -f "$zip_file" ]; then | ||
echo "Removing existing zip file $zip_file" | ||
rm "$zip_file" | ||
fi | ||
|
||
# Create a new zip file for the project directory | ||
echo "Creating zip file for $project" | ||
zip -r "$zip_file" "$project" | ||
done | ||
|
||
echo "Zip files have been created in $zip_directory for all projects." |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "library", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"clean-dev": "sh sh-cleanup-projects.sh", | ||
"install-dev": "sh sh-install-projects.sh", | ||
"start-dev": "sh sh-start-projects.sh", | ||
"stop-dev": "sh sh-stop-projects.sh", | ||
"upgrade-dev": "sh sh-upgrade-projects.sh", | ||
"zip-dev": "sh sh-zip-projects.sh" | ||
} | ||
} |
14 changes: 5 additions & 9 deletions
14
src/library/sh-cleanup-projects.sh → scripts/library/sh-cleanup-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
src/app/sh-install-projects.sh → scripts/library/sh-install-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
src/app/sh-start-projects.sh → scripts/library/sh-start-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
src/app/sh-stop-projects.sh → scripts/library/sh-stop-projects.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.