Skip to content

Add includes to Jar file #3

Description

@AL1L

I have a request to add something to @customrealms/cli so this feature would work purfectly. Add something like configs argument.

{
  "name": "example-plugin",
   "version": "1.0.0",
   "description":  "",
   "configs": { 
       "config": "./configs/config.yml", 
       "messages": "./configs/messages.yml", 
       "data": "./configs/data.yml" 
  }
}

We need it so we could create configs and could add default creata form, it should be stored where plugin.yml is stored. Otherwise it will just not work!

Originally posted by @nedaras in customrealms/runtime#9 (comment)

RE:
For your cli suggestion, I think it would be beneficial to do something like that for future options too, so we should do something like

{
  "name": "example-plugin",
  "version": "1.0.0",
  "description": "",
  "customrealms": {
    "includes": {
      "/": ["./configs/*.yml"]
    }
  }
}

The nesting under "customrealms" is per the CommonJS standard and to not conflict with other packages or future features. And, it's just my initial thought, but having an includes property with a map of dirs relative to the root of the jar to include files into using globs. If that makes sense

Originally posted by @AL1L in customrealms/runtime#9 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions