-
-
Notifications
You must be signed in to change notification settings - Fork 354
Lua Dev Environment
We suggest using a Git checkout outside of the Interface\Addons to develop WeakAuras. The Git repository does contain a few files not related to the addon but to the development of it that you should take advantage of. So checkout the repository to a different path and use mklink /H to link from the Interface\Addons folder to your Git checkout.
Important: The checkout does not contain the needed libraries so you will have to either install those separately or copy the Libs folder from a WeakAuras package downloaded from Curse/WowAce into you checkout, it will then get ignored by Git and therefore not overwritten when you switch branches etc.
There are of course several good editors out there for Lua development, but we suggest using Atom or Visual Studio Code since they have tons of good plugins available for Lua/WoW dev.
Luacheck, which also serves as a static analyzer, is the Lua Linter to use and WeakAuras comes with a .luacheckrc config file that tells it what to look for and it will point out any mistakes you may make.
You can download a statically linked binary with all deps included from here and put it somewhere on your PATH.
- Base Linter
- Plugins:
- Base Linter: Not needed.
- Plugins:
- For Luacheck: Not needed, comes with vscode-lua.
- Home
- API Documentation
- Getting Involved
- Setting up a Lua Dev Environment
- Deprecations
- Useful Snippets
- Aura Types
- Trigger Types
- Triggers and Untriggers
- Aura Activation
- Dynamic Information
- Text Replacements