-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved clean script to a bash script and fixing script to remove folders
Signed-off-by: Luiz Bezerra <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Clean and build TypeScript packages | ||
tsc --build --clean packages/**/tsconfig.json | ||
|
||
# Define the folders to be removed in an array | ||
folders_to_remove=( | ||
".webpack" | ||
"*/.webpack" | ||
"dist" | ||
"storybook-screenshots" | ||
"storybook-static" | ||
"coverage" | ||
"desktop/integration-test/coverage" | ||
"web/integration-test/coverage" | ||
) | ||
|
||
# Remove the folders | ||
for folder in "${folders_to_remove[@]}"; do | ||
rimraf "$folder" | ||
done | ||
|
||
# Display completion message | ||
echo "Build cleaned and folders removed successfully." |
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