Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

joplin-plugin-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joplin-plugin-cli

A cli for joplin plugins, supports creating and packaging plugins, uses esbuild for the core, it's very **fast**.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

joplin-plugin-cli

Introduction

A cli for joplin plugins, supports creating and packaging plugins, uses esbuild for the core, it's very fast.

Use

npm i -g joplin-plugin-cli ## install
jpl generate --name test-plugin # Generate the project
cd test-plugin
yarn build # build

FAQ

Motivation

Why not use the official plugin template project?

The front-end packaging tools have changed a lot lately, mainly due to the performance revolution caused by esbuild and swc (that's not an overstatement). vue authors abandoned webpack and built a new cross-framework tool called vite based on esbuild and rollup, so I also prefer to build faster tools based on esbuild.

The official plugin template project takes about 3.87s to build using webpack, while this cli takes only 0.17s based on esbuild. diff

How to migrate existing plugins?

  1. install dependencies

    yarn add -D joplin-plugin-api joplin-plugin-cli
    
  2. Remove the dist/prepare/update command from package.json and add the dev/build command

    {
      "scripts": {
        "build": "jpl build",
        "dev": "jpl build -w"
      }
    }
    
  3. Run the build command

    yarn build
    
  4. replace all import joplin from 'api' with import joplin from 'joplin-plugin-api' in the code

  5. Delete the api directory, webpack.config.js

Reference

  • Performance comparison of packaging tools
  • vscode officially recommends using esbuild packaging plugin

FAQs

Package last updated on 20 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc