wap for Collaborators¶
If you're collaborating on an project that uses wap
, do the following to get started:
-
First, install
wap
. -
If you haven't already, fork or clone the project that you want to work on. For example:
git clone https://github.com/t-mart/ItemVersion.git
-
Navigate to the project's root directory. For example:
cd ItemVersion
-
Build the project:
wap build
Then, look in the
dist/
directory for the built addon package.At this point, you could copy-paste that directory into your WoW
Interface/AddOns
directory, butwap
has a much more elegant developer-experience solution: runwap build
in--watch
and--link
mode to have it automatically rebuild and link into your AddOns directory. No copy-pasting needed!wap build --watch --link
-
Run the game, and see the addon in action. Make any changes you'd like, and see them reflected after reloading the client. (One way to reload is to type
/reload
in the chat window.)