1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-cli/tests/support/plugins/worker
2024-08-15 16:08:57 +01:00
..
api Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
src Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
tools Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
.gitignore Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
.npmignore Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
GENERATOR_DOC.md Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
package-lock.json Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
package.json Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
plugin.config.json Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
README.md Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
tsconfig.json Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00
webpack.config.js Docs: Add example transformers.js-based plugin (#10840) 2024-08-15 16:08:57 +01:00

Worker example

This plugin demonstrates how to create a Worker and, within it, use transformers.js for text classification.

At present, this plugin only works on desktop. However, it should also be possible to load the Worker from a plugin panel or dialog on mobile (but not web).

Notes:

  • plugin.config.json was updated to target web. This allows the plugin to load transformers.js from the worker without depending on node-loader.
    • This simplifies the build process and should make it easier to add mobile and web support to this plugin.
  • WASM files and other assets are copied by tools/copyAssets.js.