1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Update script to test plugins

This commit is contained in:
Laurent Cozic 2024-10-12 12:08:37 +01:00
parent e1531b77c6
commit 6974c8ba11

View File

@ -16,9 +16,13 @@ if [[ $NEED_COMPILING == 1 ]]; then
echo "Copying from: $PLUGIN_PATH" echo "Copying from: $PLUGIN_PATH"
echo "To: $TEMP_PLUGIN_PATH" echo "To: $TEMP_PLUGIN_PATH"
rsync -a --delete "$PLUGIN_PATH/" "$TEMP_PLUGIN_PATH/" rsync -a --exclude "cache/" --exclude "node_modules" --delete "$PLUGIN_PATH/" "$TEMP_PLUGIN_PATH/"
NODE_OPTIONS=--openssl-legacy-provider npm install --prefix="$TEMP_PLUGIN_PATH" && yarn start --dev-plugins "$TEMP_PLUGIN_PATH" cd "$TEMP_PLUGIN_PATH/"
NODE_OPTIONS=--openssl-legacy-provider npm install
cd "$SCRIPT_DIR"
yarn start --dev-plugins "$TEMP_PLUGIN_PATH"
else else
yarn start --dev-plugins "$PLUGIN_PATH" yarn start --dev-plugins "$PLUGIN_PATH"
fi fi