create-fivemworke-app

0.2.15 • Public • Published

FiveMworke

The first FiveM TypeScript Framework

Why use fivemworke?

  • Fivemworke's directory system makes development much more organized and automates the generation of fxmanifes.lua resources and configurations
  • Fivemworke is in typescript. a great language with typing and that will make development faster with the typing of server functions and client functions.
  • Fivemworke will compile the files into one making the project lighter.

Usage

  1. Settup a fivem server. Fivem Docs to settup a server
  2. Run npx create-fivemworke-app app at dir of fivem server.
  3. this is the framework folder structure.
  ├── app
  │   └── src
  |         └── resource-name
  |                       └── client
  |                       └── server
  |                       └── nui
  ├── resources
  ├── start.bat
  1. The name of the folder resource-name, will be the name of the resource.
  2. The client folder will contain all the files with the client scripts, which when compiled with the build command will be transformed into a single file.
  3. Same thing for server folder
  4. The nui folder will contain the nui of the resource.

How it works?

To compile the project execute the `build` command of app.
Fivemworke compiles the client and server script using esbuild and moves the compiled files to the resources folder.
In the nui folder, the `build` command is executed, which creates the build of react, vite, vue, etc... and copies the build files to the resources folder.
Lastly fivemworke generates the fxmanifest.lua for each resource and configures the client_script, server_script and ui_page. And the only thing you will need to do is restart the resources and see the change on your server

Contributions

This is my first open source lib that i'm creating, i don't understand much about open source projects but i'm studying about it, to improve the community and contributors.

Any contribution such as bug reports, bug fixes and framework improvements are welcome and each pull request will be analyzed and if proposed improvements will be merged into the main branch and the new version of the package will be published

  • [x] System Files to generate fxmanifest.lua
  • [x] Compile ts to /resources
  • [x] React
  • [x] Gerar o fxmanifest.lua por ultimo e adionar uipage apenas se existir

Package Sidebar

Install

npm i create-fivemworke-app

Weekly Downloads

0

Version

0.2.15

License

MIT

Unpacked Size

203 kB

Total Files

6

Last publish

Collaborators

  • gustavogonzaga