Ignore nested dependency directories in detection
This commit is contained in:
+5
-4
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "================================"
|
||||
@@ -6,18 +7,18 @@ echo " Davidson CI - Project Detection"
|
||||
echo "================================"
|
||||
|
||||
PHP_COUNT=$(find . -type f -name "*.php" \
|
||||
-not -path "./vendor/*" | wc -l)
|
||||
-not -path "*/vendor/*" | wc -l)
|
||||
|
||||
JS_COUNT=$(find . -type f \
|
||||
\( -name "*.js" -o -name "*.mjs" -o -name "*.cjs" \) \
|
||||
-not -path "./node_modules/*" | wc -l)
|
||||
-not -path "*/node_modules/*" | wc -l)
|
||||
|
||||
TS_COUNT=$(find . -type f \
|
||||
\( -name "*.ts" -o -name "*.tsx" \) \
|
||||
-not -path "./node_modules/*" | wc -l)
|
||||
-not -path "*/node_modules/*" | wc -l)
|
||||
|
||||
CSS_COUNT=$(find . -type f -name "*.css" \
|
||||
-not -path "./node_modules/*" | wc -l)
|
||||
-not -path "*/node_modules/*" | wc -l)
|
||||
|
||||
echo
|
||||
echo "Detected:"
|
||||
|
||||
Reference in New Issue
Block a user