scripts: add count-source-lines
This commit is contained in:
parent
e174b7aafd
commit
9e9a831785
2 changed files with 12 additions and 1 deletions
10
scripts/src-lc.sh
Executable file
10
scripts/src-lc.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
# Count the source lines.
|
||||
|
||||
find . '(' ! -path "./node_modules/**" ')' \
|
||||
-and '(' ! -path "./.git/**" ')' \
|
||||
-and '(' ! -path "./*dist/**" ')' \
|
||||
-and '(' ! -path "./bun.lockb" ')' \
|
||||
-and '(' ! -path "./docs/**" ')' \
|
||||
-type f -print0 \
|
||||
| wc -l --files0-from=-
|
Loading…
Add table
Add a link
Reference in a new issue