Giter Club home page Giter Club logo

typescript-plugin-archetype's Introduction

RPG Maker MZ - Typescript Plugin Archetype

This is a template repository for writing Typescript plugins for RPG Maker MZ. The main purpose here is to set a basis from which other repositories can derive from and more easily be ready to start actual development.

Getting Started

First of all, make sure you run npm install to install all the dependencies for the project, such as rollup.js and typescript.

Make sure to set package.json up correctly, changing the package name to that of your plugin (this will be used to generate the output file) and adjust the values of the version and description fields (and, optionally, keywords). Also make sure to add a property testProjectDir if you want to test your plugin (can be relative).

To configure plugin parameters and the likes, change plugin-metadata.yaml. Read more about it on comuns-rpgmaker/plugin-metadata.

Once you are done, npm run build will create a JS file for your plugin as dist/js/plugins/{pkg.name}.js.

By default, the plugin is wrapped into an IIFE and everything you export from ./src/main.ts is saved under a namespace to be configured in package.json.

TL;DR:

First:

  • npm install
  • Modify package.json

Then:

  • Modify plugin-metadata.yaml and write Typescript code on src
  • npm run build
  • Your plugin shows up compiled in dist/js/plugins (plus a debug build in whatever test directory you set up!)
  • Repeat

Contributing

This repo's purpose is exclusively providing a basic structure for other plugin repos. It is not the place to create core functionality! (i.e. no application code here!)

Changes to this repo must not demand that repos derived from it be changed, but it should be possible to update them to a more recent version of the archetype fairly easily.

typescript-plugin-archetype's People

Contributors

masked-rpgmaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.