Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DISCUSS] Plugin script style #1

Open
zyxkad opened this issue Oct 18, 2023 · 1 comment
Open

[DISCUSS] Plugin script style #1

zyxkad opened this issue Oct 18, 2023 · 1 comment
Assignees

Comments

@zyxkad
Copy link
Member

zyxkad commented Oct 18, 2023

For now plugin is a packed javascript codes, it's metadata is defined in package.json.

See more information at https://github.com/kmcsr/go-liter/tree/master/script#readme

An example for plugin is at https://github.com/LiterMC/plugin-afk

@zyxkad zyxkad moved this to In Progress in go-liter TODO Oct 18, 2023
@zyxkad zyxkad self-assigned this Oct 18, 2023
@zyxkad
Copy link
Member Author

zyxkad commented Oct 24, 2023

Now plugin must be packed as a zip use the script provided by create-glp.
And people can easily setup their environment by do npm init glp@latest <plugin-name>.

Just for easier developing, I may allow go-liter to load script as a folder and allow to configure reload when file changed, so people don't have to edit code -> pack -> copy file -> reload -> test behaviour they only have to do edit code -> test behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant