• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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