Giter VIP home page Giter VIP logo

bdpluginlibrary's Introduction

ZeresPluginLibrary - Download Language Grade

This is the repo for Zere's Plugin Library for BetterDiscord. You can follow development here. There will be more info and shit to come, but for now here ya go.

Library Documentation

View the library documentation here: https://rauenzi.github.io/BDPluginLibrary/docs

The information below is just a quickstart guide and overview on using the build scripts provided.

Using The Library

If you'd like a real-world example, take a look at https://github.com/rauenzi/BetterDiscordAddons

First add the library builder to your repo:

npm install zerespluginlibrary

Then add to your package.json:

{
    //...
   "scripts": {
    // ...
       "build": "zpl build",
       "init": "zpl init"
   }
   // ...
}

Create your ZPL config. You can use .zplrc, .zplrc.js, or a top-level zplConfig key in package.json;

// .zplrc.js
module.exports = {
    base: "./examples",
    out: "./release",
    copyToBD: true,
    addInstallScript: true
};

Initialize your first plugin with:

npm run init PluginName

You should a new folder with an index.js and config.json. When you're ready to build, just run:

npm run build PluginName

and a new PluginName.plugin.js will be created in your output folder.

Building The Lib

npm install
npm run build

This generates a BD compatible ./release/0PluginLibrary.plugin.js file to be added to your plugins folder.

Configuration

The library is configurable with the default configuration found in the package.json.

releaseFolder

Absolute or relative path to the folder where plugins that are built should be placed.

Default: "./release"


bdFolder

Absolute or relative path to the BetterDiscord folder. Useful when combined with copyToBD. This folder is found automatically on most system.

Default: "<os-specific>/BetterDiscord"


copyToBD

Boolean to determine if the built plugin should also be automatically copied over to your BD plugins directory. Very convenient for development.

Default: false


bdpluginlibrary's People

Contributors

rauenzi avatar strencher avatar jaimeadf avatar samfundev avatar smolalli avatar alvesvaren avatar dorcomando avatar man-zana avatar mwittrien avatar qbdesu avatar 1lighty avatar darten73 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.