Giter VIP home page Giter VIP logo

mindustry-mods's Introduction

Mindustry Mods

Checkout the website here: https://simonwoodburyforget.github.io/mindustry-mods/

Add mods to listing here: https://github.com/SimonWoodburyForget/mindustry-mods/blob/master/CONTRIBUTING.md

Python Scripts

Executing

Python scripts are used to update data in dist/data/modmeta.*.json which is used by the frontend. Before changing data cargo test is run, and if errors are found, the old data is reused instead.

Data is currently cached in ~/.github-cache, and if Git hashes don't change, the specific repository is skipped.

python3.8 scripts/mindustry-mods.py -iph

This would executing the script hourly. The --help argument can be used to get more information. This assumes you're running the script from the current directory, and -d is just the path back to the root directory.

Rust Frontend

  • rustc 1.39.0

Setup

Install Rust through rustup, which also installs Cargo.

  • wasm-pack: cargo install wasm-pack
  • make: sudo apt install make

wasm-pack is used to build and package the Wasm file for the browser (currently done without a bundler).

make just runs the local Makefile, nothing fancy here.

Building

  • build wasm: make build

This will run the wasm-dist task in frontend/Makefile.toml, which will run wasm-pack on top of a few commands, which will move the ./pkg into the right place.

Testing

  • unit tests: cargo test
  • full test: make test

The full test pushes to another repostory, to do a complete test on the applicationo.

Publishing

  • gh-pages 2.2.0

gh-pages npm is used to publish to the gh-pages branch, from the dist/ output directory.

mindustry-mods's People

Contributors

dependabot[bot] avatar simonwoodburyforget avatar vortetty avatar deltanedas avatar avitran0 avatar meepoffaith avatar zomadestuff 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.