[DiscordArchive] Really? I may just go that route, the steps for installation seemed confusing to me. Am I creating a
[DiscordArchive] Really? I may just go that route, the steps for installation seemed confusing to me. Am I creating a
Archived author: Deleted User • Posted: 2023-06-03T20:23:45.354000+00:00
Original source
Really? I may just go that route, the steps for installation seemed confusing to me. Am I creating a docker container in order to have it do the compiling of ts to lua?
Archived author: Roboto • Posted: 2023-06-03T20:23:59.515000+00:00
Original source
You can but you don't have to
Archived author: Deleted User • Posted: 2023-06-03T20:24:46.819000+00:00
Original source
Okay, so I can have nodejs just installed natively than it’ll hand the compiling of TS, is that turning them into lua like compiling or is it a runtime reading the ts files like the lua engine?
Archived author: Roboto • Posted: 2023-06-03T20:25:24.200000+00:00
Original source
What I usually do is create an npm project, do `npm i -D typescript typescript-to-lua` + `npm i @azerothcore/eluna-ts-lib` and go from there
Archived author: Roboto • Posted: 2023-06-03T20:26:02.885000+00:00
Original source
> is that turning them into lua like compiling or is it a runtime reading the ts files like the lua engine?
It's transpiles TypeScript to Lua, yes
Archived author: Deleted User • Posted: 2023-06-03T20:26:10.285000+00:00
Original source
Okay, do I need to make any output location for the eluna scripts, or I can just write ts files directly into the Eluna scripts folder?
Archived author: Deleted User • Posted: 2023-06-03T20:26:28.730000+00:00
Original source
Awesome thank you! I think I’ll definitely venture down this route today!
Archived author: Deleted User • Posted: 2023-06-03T20:27:05.360000+00:00
Original source
I thought transpile was the word but didn’t want to sound stupid
Archived author: Roboto • Posted: 2023-06-03T20:27:31.636000+00:00
Original source
You can have your project in the eluna scripts folder but you'll get errors when reloading eluna because of duplicate files that are shipped in the npm packages. That's no big deal but it can be quite annoying
Archived author: Deleted User • Posted: 2023-06-03T20:28:09.576000+00:00
Original source
Hmm; would it work if I had a sub folder for the ts files than they get generated to the actual upper scripts folder?