Welcome! This is a small template repository for creating typescript cookie clicker mods!
To start and work on it, just download the repository!
After that, do these simple steps:
- Make sure to have Node.js and npm installed (You can download them here)
- Do
npm i
to install all the dependencies - You are almost done! Do modifications to the
src
folder (modifyindex.ts
, etc.) and usenpm run build
to rebuild the code! - You should use some serving thing to easily load your mod locally, some suggestions include:
- The
serve
CLI, which you can install vianpm i -g serve
, then you can just doserve -p 5500
! - The Live Server Visual Studio Code extension, which is easily installed, and then you can just click the "Go live" button!
- The
- After setting up the local server, you can open the console on the cookie clicker website, and type
Game.LoadMod("http://localhost:5500/dist/index.js")
(assuming you are serving on port 5500, change if needed)!