* Add gitlab suppor
* Refactor scripts/new.lua
This adds better extensibility for the future, if we want to add more
git providers.
Also, the code now looks more idiomatic and clean.
* refactor(new.lua): simplify options table formatting
refactor(new.lua): simplify get_gitlab_data function by removing unnecessary comments and returns
refactor(new.lua): simplify get_github_data function by removing unnecessary comments and returns
refactor(new.lua): simplify generate_package function by removing unnecessary comments and returns
The changes in this commit simplify the formatting of the options table and remove unnecessary comments and returns from the get_gitlab_data, get_github_data, and generate_package functions. These changes improve the readability and maintainability of the code.
refactor(new.lua): simplify build system detection and installation
feat(new.lua): add support for more build systems and dependencies
The build system detection and installation code has been simplified by using a table of build systems and their corresponding dependencies and installation functions. This allows for easier addition of new build systems and dependencies. The script now supports more build systems such as Meson and Bazel, and their respective dependencies.
* Update new.lua
* Update new.lua
* Update new.lua
---------
Co-authored-by: Pablo <pablo.hugen@bry.com.br>
Co-authored-by: ruki <waruqi@gmail.com>