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:
parent
3e58aefbbe
commit
20f46c75c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user