Using Build Tools - koreanpanda345/Pokemon-Showdown-Server-Guide GitHub Wiki
In the client, we have a folder called build tools. In that folder are files that are use to build the data for us. How do we use them? well all we need to do is run them just like any js file. so like node build-indexes to build the search-indexes.js and teambuilder-indexes.js file in the client/data.
I actually took the easy way out, and developed a .bat file to execute all of the build tools for me, when I execute the .bat file.
If you don't know what a .bat file is, then I suggest you go and learn bash/shell on codecademy.com. a .bat file is actually called a Batch file. You can look up what a Batch file is, so I don't need to explain it.
anyways this is what the .bat file looked like.
npm run build-full
# I made .bat files to run the client and the server
# so I don't need to do any extra steps to test something.
start client.bat
start server.bat
#Once it is done, then exit
exit
This will will go to the build_tools folder, and run all of the build tools. Once it is done, then it goes back to the client's root folder, then run my other .bat files which runs the client, and the server.