Skip to content

Commit

Permalink
🔧 Update workflows, add styluaignore file, update fxmanifest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gellipapa committed Jul 29, 2023
1 parent 6348e80 commit 4de1e20
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 31 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/format-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,25 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Check exist lua files
id: check_lua_files
uses: andstor/file-existence-action@v2
with:
files: "*.lua"
- name: Install stylua and format files
if: steps.check_lua_files.outputs.files_exists == 'true'
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.18.0
args: -- .
- name: Check exist web files
id: check_web_files
uses: andstor/file-existence-action@v2
with:
files: "**/*.{ts,js,css,html}"
- name: Format files with Prettier
if: steps.check_web_files.outputs.files_exists == 'true'
run: |
npx prettier --write '**/*.{ts,js,css,html}'
- name: Update repo before push
Expand Down
1 change: 1 addition & 0 deletions .styluaignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fxmanifest.lua
62 changes: 31 additions & 31 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
fx_version("cerulean")
game("gta5")
lua54("yes")
fx_version 'cerulean'
game 'gta5'
lua54 'yes'

description("ESX hud")
version("1.4.0")
description 'ESX hud'
version '1.5.0'

shared_scripts({
"@es_extended/imports.lua",
"@es_extended/locale.lua",
"shared/config.lua",
"shared/main.lua",
"locales/*.lua",
})
shared_scripts {
'@es_extended/imports.lua',
'@es_extended/locale.lua',
'shared/config.lua',
'shared/main.lua',
'locales/*.lua'
}

server_scripts({
"@oxmysql/lib/MySQL.lua",
"server/*.lua",
})
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/*.lua'
}

client_scripts({
"client/*.lua",
"client/player/*.lua",
"client/vehicle/*.lua",
})
client_scripts {
'client/*.lua',
'client/player/*.lua',
'client/vehicle/*.lua'
}

ui_page("web/dist/index.html")
ui_page 'web/dist/index.html'

files({
"web/dist/**",
"web/dist/assets/**",
})
files {
'web/dist/**',
'web/dist/assets/**',
}

dependencies({
"es_extended",
"esx_status",
"oxmysql",
})
dependencies {
'es_extended',
'esx_status',
'oxmysql'
}

0 comments on commit 4de1e20

Please sign in to comment.