This commit is contained in:
Luke committed 2023-06-04 15:15:21 +02:00
1 parent 3cebaf7fa5
commit b5eba8423f
229 files changed
+6238 -10690

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
Git is a version control system, allowing changes to be effectively tracked, merged, and reverted.
As our resources are hosted on GitHub, it can be incredibly useful to learn how to create your own repository to track changes and keep up-to-date. If you plan on making your own changes to our resources, this will allow you to keep your own changes and prevent loss of data.
- Refer to [GitHub's guide to setting up Git](https://docs.github.com/en/get-started/quickstart/set-up-git#setting-up-git).
- You can use a Git GUI client like [GitKraken](https://www.gitkraken.com/) to improve your workflow and more easily maintain changes.
+9
View File
@@ -0,0 +1,9 @@
---
title: Node.js
---
Node.js is a JavaScript runtime and is used for building applications. In the context of FiveM it is necessary to bundle resources into a single package that can be ran on both the server and client.
- [Download](https://nodejs.org) and install the LTS version of Node.js.
- Open a command-line terminal (e.g. Terminal, Command Prompt).
- Enter `node --version` to confirm successful installation.
+24
View File
@@ -0,0 +1,24 @@
---
title: pnpm
---
pnpm is a fast and disk space efficient package manager, serving as an alternative to npm and yarn.
- Ensure you have [installed Node.js](./nodejs).
- Open a command-line terminal (e.g. Terminal, Command Prompt).
- Enter `npm install -g pnpm` to globally install the package.
- You can install dependencies with pnpm using `pnpm i`.
You can reference `package.json` files for available scripts, i.e.
```json
"scripts": {
"start": "vite",
"watch": "vite build --watch",
"build": "tsc && vite build",
"preview": "vite preview",
"format": "prettier --write \"./src/**/*.{ts,tsx,css}\""
},
```
Using the example above `pnpm build` will run the build script for the given package.