A simple package manager for KubeJS written in Go.
The Go API exposed at github.com/Modern-Modpacks/kjspkg/pkg/kjspkg is not stable. It is not recommended to use it just yet.
This script will install KJSPKG to your system and add it to your PATH.
# On Linux
curl -fsSL https://g.tizu.dev/mm.kj/install.sh?r | bash
# On Windows
powershell -c "irm https://g.tizu.dev/mm.kj/install.ps1?r | iex"
This requires a working Go installation of at least 1.23.2.
go install github.com/Modern-Modpacks/kjspkg/cmd/kjspkg@latest
KJSPKG comes with extensive help text, so you can just run kjspkg
to see all
the commands and options available. You may also use --help
after any command
to get more information about it.
kjspkg install [package] [package]
kjspkg remove [package] [package]
kjspkg update [package] [package]
- Create a repository containing your scripts and assets
- Don't forget to license your code
- Create an empty directory and run
kjspkg dev init
- Do your thing and create a repository with the code
- Fork this repo
- Clone it
- Add your package to
pkgs.json
file. Format it like this:"your_package_id": "your_github_name/your_repo_name[$path/to/your/package/directory][@branch_name]",
- Things in [] are optional
- Only specify the path if you have multiple packages in one repository. If you do, specify the path where the .kjspkg file is located at
- Branch is
main
by default
- Create a pull request
- Wait for it to be accepted
- profit
[![kjspkg-available](https://github-production-user-asset-6210df.s3.amazonaws.com/79367505/250114674-fb848719-d52e-471b-a6cf-2c0ea6729f1c.svg)](https://kjspkglookup.modernmodpacks.site/#{packagename})
Tested means that the version is confirmed to be working;
Not tested means that the version should work, but hasn't been tested. Feel free to test it yourself and let us know so we'll update the readme.
Full support means that we focus on that version;
Partial support means that the version is supported, but not as much as the fully supported ones;
No support means that the version works, but any issues that you have with it won't be fixed.
Borked means it doesn't work lmao.