Skip to content

SerenityJS/sample-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The SerenityJS sample plugin provides a basic configuration for plugin usage in the software. To get started, either clone this repo or create a new repository using this template. A firm understanding of TypeScript and JavaScript will be very beneficial for plugin development.

Usage

The plugin system in SerenityJS is pretty simple to use and to develop on. Make sure you place your plugin within the plugins directory within your SerenityJS server. Once the server starts up, it will recognize the plugin and process it accordingly. Plugins that are written in TypeScript will be built upon usage. Visit our documentation to get started!

Building

This plugin sample uses TypeScript to build your plugin. Anytime you make a change to your plugin, you will need to transpile your code into pure JavaScript. To do this, run the command npm run build in the source directory of your plugin. You should notice a new dist directory was created. The will be the entry point to your plugin. A default watch script is also provided to automatically build your plugin when changes are made. To use this, run npm run watch in the source directory of your plugin.

Coding Examples

About

Sample plugin usage for the SerenityJS server software.

Resources

License

Stars

Watchers

Forks