Typescript Boilerplate for alt:V - v5.3.0
Super Fast Compilation
Important
This boilerplate will no longer be updated. Consider using Rebar Framework for more up-to-date practices, and a plugin system.
A simple Typescript Boilerplate that builds incredibly fast using the SWC Library.
- Auto Refresh Server
- Auto Compile TypeScript Files
- Auto Download Resources
- Single Resource Code Support
- Fastest Auto Reconnect Time on Recompile
- Compile Multiple Resources at Once
Use the command below in any terminal, command prompt, etc.
git clone https://github.com/Stuyk/altv-typescript
Use the command below in any terminal, command prompt, etc.
cd altv-typescript
npm install
Use the command below in any terminal, command prompt, etc. This will download all necessary server files from an additional package used by this project.
npm run update
Run this command to run the server in production mode.
npm run windows
Run this command to run the server in production mode.
npm run linux
Run this command to run the server in development mode.
This will automatically reconnect your alt:V Client if you have debug
mode turned on.
npm run dev
Use the key combination ctrl + c
to kill your server in your terminal, command prompt, etc.
Always add your already compiled resources & mods into the resources
folder.
Add file name .nocompile
to the resource folder you want to ignore from compiling.