• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Simple node.js Lua map bundling template

Status
Not open for further replies.
Level 2
Joined
Oct 11, 2010
Messages
11
netd777/war3-lua-seed

Warcraft 3 Map Project Seed With Lua

A Wc3 map project template using Lua scripting language that allows code splitting and editing code while the World Editor is open (kinda).


Features
  • Bundling and code splitting (via Luabundle)
  • File watcher (via nodemon)
  • Bundle contents of the src/ (and lib/ for external libraries like damage-engine.lua) folder and inject them in the map.w3x/war3map.lua file
    • Thus enabling editing the map using the World Editor whilist editing lua with code editors like VSCode without having to neither copy/paste code in the editor nor create a clone project
    • See Caveats
  • Code minification using Luamin
  • File final bundle size check (max: 100KB)
 
Status
Not open for further replies.
Top