uphy / joplin-plantuml-plugin

18 stars 1 forks source link

Joplin PlantUML Plugin

For users

This plugin has already been deployed to Joplin's plugin repository. So you can install it by:

  1. Start Joplin app
  2. Go to Preferences > Plugins
  3. Input plantuml to Search for plugins text field.
  4. Install
  5. Restart Joplin

For developers

The main two files you will want to look at are:

Building the plugin

The plugin is built using Webpack, which creates the compiled code in /dist. A JPL archive will also be created at the root, which can use to distribute the plugin.

To build the plugin, simply run npm run dist.

The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.

Updating the plugin framework

To update the plugin framework, run npm run update.

In general this command tries to do the right thing - in particular it's going to merge the changes in package.json and .gitignore instead of overwriting. It will also leave "/src" as well as README.md untouched.

The file that may cause problem is "webpack.config.js" because it's going to be overwritten. For that reason, if you want to change it, consider creating a separate JavaScript file and include it in webpack.config.js. That way, when you update, you only have to restore the line that include your file.