Coder Social home page Coder Social logo

saltyeyes / melvor-idle-mod-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cherrymace/melvor-idle-mod-boilerplate

0.0 0.0 0.0 20 KB

Fork and clone this repo for an improved dev experience while writing mods for Melvor Idle.

JavaScript 94.88% CSS 2.30% HTML 2.83%

melvor-idle-mod-boilerplate's Introduction

Introduction

This is a boilerplate/template for Melvor Idle mods. Using Webpack, this will compile your mod to a single, uglified script file, largely reducing mod size and improving compatibilty with IDE features. The downside to this is it makes debugging in the browser a bit more difficult with the uglified source.

Prerequisites

Requires Node.js

Use

  1. Fork and clone repository.
  2. Run npm install
  3. Update package.json's name property to match your mod.
  4. Update manifest.json's namespace property.
  5. Run npm run build to build.
  6. Upload the generated .zip file in the dist folder to mod.io.

Important Notes/Caveats

  • Don't use loadModule to import modules. Use ES6 import instead.
  • Image files that you want to bundle with your mod must be in the img folder and be imported somewhere in the code.
  • The img folder cannot have subdirectories.
  • As mentioned above, the minification and uglification of code makes debugging error messages a bit more tedious.

melvor-idle-mod-boilerplate's People

Contributors

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