-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
30 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# This batch script is designed for comprehensive cleaning of your project by deleting unnecessary files. | ||
# It's crucial to close any Integrated Development Environment (IDE), such as vs code, etc., before executing this script to prevent any conflicts or loss of unsaved data. | ||
# Please note that the commands included in this script are specifically tailored for the Linux/macOS | ||
# This batch script cleans your project by deleting unnecessary files. | ||
# It is important to close any IDEs, such as vs for mac, before running this script to prevent conflicts or data loss. | ||
# The commands in this script are specifically designed for macOS/Linux. | ||
|
||
# Runs dotnet clean for each csproj file | ||
# Runs the dotnet clean command for each .csproj file. | ||
for csproj in $(find . -name '*.csproj'); do | ||
dotnet clean $csproj | ||
done | ||
|
||
# Delete specified directories | ||
# Deletes specified directories | ||
for dir in $(find . -type d \( -name "bin" -o -name "obj" -o -name "node_modules" -o -name "Packages" -o -name ".vs" -o -name "TestResults" -o -name "AppPackages" -o -name ".meteor" \)); do | ||
rm -rf $dir | ||
done | ||
|
||
# Delete specified files | ||
# Deletes specified files | ||
for file in $(find . -type f \( -name "*.csproj.user" -o -name "Resources.designer.cs" -o -name "*.css" -o -name "*.min.css" -o -name "*.js" -o -name "*.min.js" -o -name "*.map" \)); do | ||
rm -f $file | ||
done | ||
|
||
# Delete empty directories | ||
# Deletes empty directories. | ||
find . -type d -empty -delete |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# This batch script is designed for comprehensive cleaning of your project by deleting unnecessary files. | ||
# It's crucial to close any Integrated Development Environment (IDE), such as vs code, etc., before executing this script to prevent any conflicts or loss of unsaved data. | ||
# Please note that the commands included in this script are specifically tailored for the Linux/macOS | ||
# This batch script cleans your project by deleting unnecessary files. | ||
# It is important to close any IDEs, such as vs for mac, before running this script to prevent conflicts or data loss. | ||
# The commands in this script are specifically designed for macOS/Linux. | ||
|
||
# Runs dotnet clean for each csproj file | ||
# Runs the dotnet clean command for each .csproj file. | ||
for csproj in $(find . -name '*.csproj'); do | ||
dotnet clean $csproj | ||
done | ||
|
||
# Delete specified directories | ||
for dir in $(find . -type d \( -name "bin" -o -name "obj" -o -name "node_modules" -o -name "Packages" -o -name ".vs" -o -name "TestResults" -o -name "AppPackages" -o -name ".meteor" -o -name "App_Data" \)); do | ||
# Deletes specified directories | ||
for dir in $(find . -type d \( -name "bin" -o -name "obj" -o -name "node_modules" -o -name "Packages" -o -name ".vs" -o -name "TestResults" -o -name "AppPackages" -o -name ".meteor" \)); do | ||
rm -rf $dir | ||
done | ||
|
||
# Delete specified files | ||
for file in $(find . -type f \( -name "*.csproj.user" -o -name "Resources.designer.cs" -o -name "*.css" -o -name "*.min.css" -o -name "*.js" -o -name "*.min.js" -o -name "*.map" -o -name "*.pubxml*" \)); do | ||
# Deletes specified files | ||
for file in $(find . -type f \( -name "*.csproj.user" -o -name "Resources.designer.cs" -o -name "*.css" -o -name "*.min.css" -o -name "*.js" -o -name "*.min.js" -o -name "*.map" \)); do | ||
rm -f $file | ||
done | ||
|
||
# Delete empty directories | ||
# Deletes empty directories. | ||
find . -type d -empty -delete |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# This batch script is designed for comprehensive cleaning of your project by deleting unnecessary files. | ||
# It's crucial to close any Integrated Development Environment (IDE), such as vs code, etc., before executing this script to prevent any conflicts or loss of unsaved data. | ||
# Please note that the commands included in this script are specifically tailored for the Linux/macOS | ||
# This batch script cleans your project by deleting unnecessary files. | ||
# It is important to close any IDEs, such as vs for mac, before running this script to prevent conflicts or data loss. | ||
# The commands in this script are specifically designed for macOS/Linux. | ||
|
||
# Runs dotnet clean for each csproj file | ||
# Runs the dotnet clean command for each .csproj file. | ||
for csproj in $(find . -name '*.csproj'); do | ||
dotnet clean $csproj | ||
done | ||
|
||
# Delete specified directories | ||
# Deletes specified directories | ||
for dir in $(find . -type d \( -name "bin" -o -name "obj" -o -name "node_modules" -o -name "Packages" -o -name ".vs" -o -name "TestResults" -o -name "AppPackages" -o -name ".meteor" \)); do | ||
rm -rf $dir | ||
done | ||
|
||
# Delete specified files | ||
# Deletes specified files | ||
for file in $(find . -type f \( -name "*.csproj.user" -o -name "Resources.designer.cs" -o -name "*.css" -o -name "*.min.css" -o -name "*.js" -o -name "*.min.js" -o -name "*.map" \)); do | ||
rm -f $file | ||
done | ||
|
||
# Delete empty directories | ||
# Deletes empty directories. | ||
find . -type d -empty -delete |
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
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