1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00

Tools: Make it easier to update plugin demo types

This commit is contained in:
Laurent Cozic 2023-09-16 12:01:55 +01:00
parent 3e58aefbbe
commit 20f46c75c4

View File

@ -12,13 +12,25 @@ set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CLI_DIR="$SCRIPT_DIR/../app-cli"
LIB_DIR="$SCRIPT_DIR/../lib"
TEST_PLUGINS_DIR="$SCRIPT_DIR/../app-cli/tests/support/plugins"
./updateTypes.sh
npm link
API_SOURCE_DIR="$SCRIPT_DIR/generators/app/templates/api"
"$CLI_DIR/tests/support/plugins/updatePlugins.sh"
for DIR in $TEST_PLUGINS_DIR/*/ ; do
if [ -d "$DIR/api" ]; then
echo "Updating $DIR/api/..."
rsync -a "$API_SOURCE_DIR/" "$DIR/api/"
fi
exit
done
git add -A
git c -m "Plugins: Updated types"
git push
# npm link
# "$CLI_DIR/tests/support/plugins/updatePlugins.sh"
# git add -A
# git c -m "Plugins: Updated types"
# git push