From eb6b0f71c5157fe33d52e5f6c15b5d0fc9e488de Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Sat, 19 Aug 2023 17:58:19 +0200 Subject: [PATCH] chore(release): 0.1.1 --- CHANGELOG.md | 4 ++++ README.md | 19 +++++++++++++++++++ integration/fxmanifest.lua | 2 +- package.json | 4 ++-- scripts/bump-version.mjs | 2 +- 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3170558..0f86a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.1 + +- Proper versioning + ## 0.1.0 - London Studios SmartSigns support. diff --git a/README.md b/README.md index da3ea49..acb1678 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,22 @@ SnailyCAD Live Map integration for FiveM. - https://github.com/TGRHavoc/live_map - https://vespura.com/fivem/weapons/ + +## Developer Docs + +### Source code installation + +> **Warning** +> This is only for developers who want to contribute to the project. + +1. Clone the repository: `git clone https://github.com/SnailyCAD/live-map.git`. +2. Install dependencies: `pnpm install`. +3. Copy `.env.example` to `.env` and enter your FXServer path. +4. Run the dev command `pnpm run dev`. This will listen for changes and automatically update the files in your FXServer. +5. Manually run `restart ` in your FXServer console to restart the resource. + +### Publishing + +1. Run the bump releases script: `node scripts/bump-version.mjs `. +2. Commit the changes: `git commit -am "chore(release): `. +3. Push the changes: `git push`. diff --git a/integration/fxmanifest.lua b/integration/fxmanifest.lua index 4803458..86537e9 100644 --- a/integration/fxmanifest.lua +++ b/integration/fxmanifest.lua @@ -3,7 +3,7 @@ game "gta5" author "Dev-CasperTheGhost" description "SnailyCAD Live Map integration for FiveM." -version "0.0.10" +version "0.1.1" client_scripts {"client/client.js"} server_scripts {"server/server.js"} diff --git a/package.json b/package.json index f430a6c..68c1e60 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@snailycad/live-map", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "author": { "name": "Casper Iversen", @@ -46,4 +46,4 @@ "printWidth": 100, "tabWidth": 2 } -} +} \ No newline at end of file diff --git a/scripts/bump-version.mjs b/scripts/bump-version.mjs index d034ef1..4ffdf4a 100644 --- a/scripts/bump-version.mjs +++ b/scripts/bump-version.mjs @@ -4,7 +4,7 @@ import * as path from "node:path"; const BASE_PATH = path.resolve(process.cwd(), "integration"); const [, , version] = process.argv; -const FX_VERSION_REGEX = /version "[0-9].[0-9].[0-9]"/; +const FX_VERSION_REGEX = /version "[0-9].[0-9]+.[0-9]+"/; if (!version) { throw new Error("Must specify a new version.");