[PR #118] [MERGED] Better plugin development experience #54

Closed
opened 2025-12-29 07:19:05 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/118
Author: @gschier
Created: 9/29/2024
Status: Merged
Merged: 9/29/2024
Merged by: @gschier

Base: masterHead: better-plugin-loading


📝 Commits (8)

📊 Changes

33 files changed (+172753 additions, -66 deletions)

View changed files

.gitattributes (+2 -0)
📝 DEVELOPMENT.md (+4 -6)
📝 plugin-runtime-types/src/bindings/events.ts (+1 -1)
📝 plugin-runtime/src/PluginHandle.ts (+12 -7)
📝 plugin-runtime/src/index.ts (+1 -1)
📝 plugin-runtime/src/index.worker.ts (+15 -4)
📝 scripts/vendor-plugins.cjs (+2 -2)
📝 src-tauri/.gitignore (+2 -1)
📝 src-tauri/src/lib.rs (+4 -5)
src-tauri/vendored/plugins/exporter-curl/build/index.js (+98 -0)
src-tauri/vendored/plugins/exporter-curl/package.json (+17 -0)
src-tauri/vendored/plugins/filter-jsonpath/build/index.js (+510 -0)
src-tauri/vendored/plugins/filter-jsonpath/package.json (+17 -0)
src-tauri/vendored/plugins/filter-xpath/build/index.js (+8366 -0)
src-tauri/vendored/plugins/filter-xpath/package.json (+18 -0)
src-tauri/vendored/plugins/importer-curl/build/index.js (+560 -0)
src-tauri/vendored/plugins/importer-curl/package.json (+19 -0)
src-tauri/vendored/plugins/importer-insomnia/build/index.js (+7438 -0)
src-tauri/vendored/plugins/importer-insomnia/package.json (+17 -0)
src-tauri/vendored/plugins/importer-openapi/build/index.js (+146233 -0)

...and 13 more files

📄 Description

This PR improves the development experience of plugins:

  • No longer need to clone plugin repo to bootstrap (built plugins were added to Git)
  • Can set YAAK_PLUGINS_DIR on run to change where bundled plugins are loaded
    • Useful for dev, when working on bundled plugins
  • Disable file watcher for bundled plugins
  • Reload request action plugins on window focus

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/118 **Author:** [@gschier](https://github.com/gschier) **Created:** 9/29/2024 **Status:** ✅ Merged **Merged:** 9/29/2024 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `master` ← **Head:** `better-plugin-loading` --- ### 📝 Commits (8) - [`3f74518`](https://github.com/mountain-loop/yaak/commit/3f74518c0a9cbd00bc9ac74cc130e2b353a6355c) Better plugin loading - [`f6e4172`](https://github.com/mountain-loop/yaak/commit/f6e4172a2247324ee179f4b0dd96abb1db56d32d) Skip plugins build if YAAK_PLUGINS_DIR not set - [`2d7a2af`](https://github.com/mountain-loop/yaak/commit/2d7a2af6804ffcfb9d9a267bc500425cf0c1e5ea) Update DEVELOPMENT.md - [`d11ca18`](https://github.com/mountain-loop/yaak/commit/d11ca185654109b1b30bb17049529f21e3722bf7) Add .gitattributes - [`dc793bb`](https://github.com/mountain-loop/yaak/commit/dc793bb93589b3c209b1f87b25f7579ce1aa1900) Fix .gitattributes - [`7009e05`](https://github.com/mountain-loop/yaak/commit/7009e05e1bc48dc3f39fcfdd8b2df134a5417d8e) Fix .gitattributes - [`678233e`](https://github.com/mountain-loop/yaak/commit/678233e5d1864c5b15fd6cf04f85ebfc9b6ca9d2) Again - [`91642b0`](https://github.com/mountain-loop/yaak/commit/91642b0ea71c765f58a347e79ec4c7f3641b84fb) Refactor ### 📊 Changes **33 files changed** (+172753 additions, -66 deletions) <details> <summary>View changed files</summary> ➕ `.gitattributes` (+2 -0) 📝 `DEVELOPMENT.md` (+4 -6) 📝 `plugin-runtime-types/src/bindings/events.ts` (+1 -1) 📝 `plugin-runtime/src/PluginHandle.ts` (+12 -7) 📝 `plugin-runtime/src/index.ts` (+1 -1) 📝 `plugin-runtime/src/index.worker.ts` (+15 -4) 📝 `scripts/vendor-plugins.cjs` (+2 -2) 📝 `src-tauri/.gitignore` (+2 -1) 📝 `src-tauri/src/lib.rs` (+4 -5) ➕ `src-tauri/vendored/plugins/exporter-curl/build/index.js` (+98 -0) ➕ `src-tauri/vendored/plugins/exporter-curl/package.json` (+17 -0) ➕ `src-tauri/vendored/plugins/filter-jsonpath/build/index.js` (+510 -0) ➕ `src-tauri/vendored/plugins/filter-jsonpath/package.json` (+17 -0) ➕ `src-tauri/vendored/plugins/filter-xpath/build/index.js` (+8366 -0) ➕ `src-tauri/vendored/plugins/filter-xpath/package.json` (+18 -0) ➕ `src-tauri/vendored/plugins/importer-curl/build/index.js` (+560 -0) ➕ `src-tauri/vendored/plugins/importer-curl/package.json` (+19 -0) ➕ `src-tauri/vendored/plugins/importer-insomnia/build/index.js` (+7438 -0) ➕ `src-tauri/vendored/plugins/importer-insomnia/package.json` (+17 -0) ➕ `src-tauri/vendored/plugins/importer-openapi/build/index.js` (+146233 -0) _...and 13 more files_ </details> ### 📄 Description This PR improves the development experience of plugins: - No longer need to clone plugin repo to bootstrap (built plugins were added to Git) - Can set `YAAK_PLUGINS_DIR` on run to change where bundled plugins are loaded - Useful for dev, when working on bundled plugins - Disable file watcher for bundled plugins - Reload request action plugins on window focus --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 07:19:05 +01:00
adam closed this issue 2025-12-29 07:19:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#54