nocobase2/generate-npmignore.sh

23 lines
279 B
Bash
Raw Normal View History

2024-05-07 16:44:42 +08:00
#!/bin/bash
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
if [ "$1" == "ignore-src" ]; then
2024-09-24 09:50:20 +08:00
CONTENT="/node_modules
/docker
/docs
"
2024-05-07 16:44:42 +08:00
else
CONTENT="/node_modules
2024-09-24 09:25:10 +08:00
/docker
/docs
2024-05-07 16:44:42 +08:00
/src"
fi
echo $CONTENT
for FILE in $FILES
do
echo "$CONTENT" > $FILE
done