🍐
HolePunch Pear Tools
  • 👊What is HolePunch?
    • Core Modules
  • 💡Insights
    • Ideas to build P2P apps
  • ⚙️Web Apps
    • ⛓️Pear Chat
    • 🗃️Pear Box
    • 📒Pear Note
  • 🍐PEAR TOOLS
    • 🏔️Pear Apps
    • 📏Pear Proposals
    • 🔌Plugin
  • 💻About
    • ❓FAQs
Powered by GitBook
On this page
  • Summary:
  • Install:
  • Source code:
  • Steps to create your own plugin:
  • Requirements:
  1. PEAR TOOLS

Plugin

Pear Apps plugin will be a keet application extension built using the holepunch libraries to manage the p2p network. This extension will have functionality that can be added to your keet app.

Summary:

🍐📱🌐📦🔒

Install:

Clone and install dependencies:

git clone https://bitbucket.org/pointsville-beta/pear-plugin-vscode/src/master/
cd pear-plugin-vscode
nvm use 19
npm install

How to run the extension.

  • Once npm installs all the dependencies press f5.

  • A new vscode window will open.

  • Press CTRL+Shift+P.

  • Search "Pear Plugin" and press enter

Source code:

Download

Steps to create your own plugin:

Install the yo and generator-code dependencies:

npm install -g yo generator-code

Create the basic extension code using yo:

yo code

# ? What type of extension do you want to create? 
#.  New Extension (TypeScript)
# ? What's the name of your extension? HelloWorld
### Press <Enter> to choose default for all options below ###

# ? What's the identifier of your extension? helloworld
# ? What's the description of your extension? LEAVE BLANK
# ? Initialize a git repository? Yes
# ? Bundle the source code with webpack? No
# ? Which package manager to use? npm

# ? Do you want to open the new folder with Visual Studio Code? Open with `code`

Create your own logic:

  • Open vscode and open the folder that was generated in the previous step inside vscode.

  • Open extension.js file.

  • Edit the extension.js file to implement your own logic.

Extension documentation: here

Requirements:

PreviousPear ProposalsNextFAQs

Last updated 2 years ago

🍐
🔌