mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-29 18:58:26 +08:00
23 lines
279 B
Bash
Executable File
23 lines
279 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILES=$(find packages/pro-plugins/@nocobase -name .npmignore)
|
|
|
|
if [ "$1" == "ignore-src" ]; then
|
|
CONTENT="/node_modules
|
|
/docker
|
|
/docs
|
|
"
|
|
else
|
|
CONTENT="/node_modules
|
|
/docker
|
|
/docs
|
|
/src"
|
|
fi
|
|
|
|
echo $CONTENT
|
|
|
|
for FILE in $FILES
|
|
do
|
|
echo "$CONTENT" > $FILE
|
|
done
|