

Step 5: Start your plugin command develop and test locally The -watch flag keeps the process looking for changes to your files and will automatically rebuild the plugin for you.
#Noteplan plugins code#
This will compile your code and put it into your NotePlan app directory so you can test your plugin. Npc plugin:dev -watch from the root directory to build your plugin as you develop so it can be tested in NotePlan. Open up a Terminal shell, cd to the repository root directory, and issue the command: Step 3: Create your plugin using NotePlan CLIĪnswer the prompt questions (or supply all the necessary options from command line (see noteplan-cli plugin:create -help for details) Noteplan-cli plugin:info -check to see if your plugin command is available You will need to make sure there are no duplicate plugin command names, otherwise NotePlan will activate the first matched command name Step 2: Check if your desired plugin command is available Noteplan-cli plugin:info to see a list of all available commands across all existing NotePlan plugins. Using the NotePlan CLI, perform the following actions: Note: Each of these configuration files can be overridden if needed by placing a project specific configuration file in you project plugin, however, for consistency with other NotePlan plugins, we encourage to use the defaults wherever possible. Configure rollup rollup (for bundling multiple source files into a single release).Įach of these tools have their own configuration files at the root directory (e.g.Configure flow flow (for type checking).Configure eslint eslint (for checking code conventions).
#Noteplan plugins install#
This will install the necessary npm dependencies and initialize your plugin working directory, including: Run the following commands from the root of your local GitHub repository for NotePlan/plugins. Step 3: Initialize Local Development Environment Make sure you have a recent version of node and npm installed (if you need to install node, brew install node is the quickest method, you can follow instructions on node website). It would be good to familiarize yourself with that code. Speaking of which, there is a /helpers directory at the root of the repository that contains a lot of re-usable code that is built upon the NotePlan APIs and will speed up your development. This will give you a wealth of material to learn from and borrow from. When you have cloned this repository, you will not only have the tooling, but you will have the actual source code for every publicly-available NotePlan plugin. You might want to consult this good modern JavaScript tutorial. If you are a developer and want to contribute and build your plugins, see the plugin writing documentation and discuss this with other developers on Discord #plugin-dev channel. If you have an idea for a plugin, submit them here or inquire in the NotePlan Discord community's #plugin-ideas channel. NotePlan Plugin API has been tested using Node.js range, any version outside of this range may lead to unexpected issues Plugin Information macOS Catalina 10.15.2 or greater (strongly recommend macOS Big Sur 11.x or Monterey 12.x).16 - Do Not Use Expirimental Version of Node (e.g. The following items are required for NotePlan Plugin Development Once you have read that carefully and understand the basics, you should return here to acquire and start using the NotePlan Plugin tooling described below. If you want to develop plugins, Step 1 is to read the NotePlan Knowledgebase Document describing how plugins work in NotePlan and the basic plugin anatomy.
#Noteplan plugins update#
NotePlan Plugins provides an extensive API for extending default editing and task management and work across all platforms (macOS and iOS).Įach plugin command can be invoked using the NotePlan Command Bar, or by entering any of available commands directly in the editor by entering /command (NotePlan will auto update the list of possible commands as you type)
