-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
zbeyens
committed
May 14, 2024
1 parent
e36887c
commit ef375ed
Showing
2 changed files
with
13 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
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 @@ | ||
#!/bin/sh | ||
|
||
# Change to the initial working directory | ||
cd "$INIT_CWD" || { echo "Failed to change directory to $INIT_CWD"; exit 1; } | ||
|
||
# Run barrelsby on the src directory | ||
barrelsby -d "$INIT_CWD/src" -D -l all -q -e '.*__tests__.*|(.*(fixture|template|spec|internal|server).*)|server.ts' | ||
|
||
# Check if the src/server directory exists and run barrelsby if it does | ||
if [ -d "$INIT_CWD/src/server" ]; then | ||
barrelsby -d "$INIT_CWD/src/server" -l all -q | ||
fi |