Git Product home page Git Product logo

gold-v's Introduction

Typescript Boilerplate for alt:V - v4.1.0

Super Fast Compilation

⌨️ Learn how to script for alt:V

❤️ Become a Sponsor of my Open Source Work

💡 Need a Roleplay Script? Try Athena!

🎮 alt:V Multiplayer for GTA:V

⭐ This repository if you found it useful!

Features

A simple Typescript Boilerplate that builds incredibly fast using the SWC Library.

  • Full alt:V Type Support for VSCode
  • Built in auto-copy for non-typescript files.
  • Built in handling of multiple resources for compilation.
  • Built in server restart after compilation.
  • Easily expandable resource directory.
  • altv-pkg support for auto-downloading alt:V Server Binaries.
  • Prettier Configuration for code formatting.
  • Tried and tested and used by the Athena Framework for over 1 year.

Installation

Clone the Repository

Use the command below in any terminal, command prompt, etc.

git clone https://github.com/Stuyk/altv-typescript

Install the Repository

Use the command below in any terminal, command prompt, etc.

cd altv-typescript
npm install

Download Server Files

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

Build Typescript Files

Use the command below in any terminal, command prompt, etc. This will build your TypeScript code into JavaScript.

npm run build

Start Production Server (Windows)

Run this command to run the server in production mode.

npm run windows

Start Production Server (Linux)

Run this command to run the server in production mode.

npm run linux

Start Developer Server (Windows)

Run this command to run the server in development mode.

npm run dev

End Server Runtime

Use the key combination ctrl + c to kill your server in your terminal, command prompt, etc.

How to Add Mods, and New Resources

This quickstart repository for Typescript allows mods.

However, do not put your resources in the resources folder.

Instead you should put resources, mods, etc. in the src folder in their own folder. They will be automatically copied to the resources folder after the code is transpiled.

gold-v's People

Contributors

b0tis avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.