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

Documentation how to use development version in plugin #94

Open
danyill opened this issue Apr 16, 2023 · 1 comment
Open

Documentation how to use development version in plugin #94

danyill opened this issue Apr 16, 2023 · 1 comment

Comments

@danyill
Copy link

danyill commented Apr 16, 2023

I want to use the latest, bleeding-edge version of open-scd-core in my plugin.

I would be pleased if there were documentation on how to do this, either from CI or when using a local clone/build process and it could be added to the README.

@danyill
Copy link
Author

danyill commented May 1, 2023

I learned thanks to Jakob and Christian that one way to do this is via the CI build.

The plugins JSON can be passed as a URI encoded parameter, e.g.

plugins={
  "menu": 
  [
    {"name": "Open File", "translations": {"de": "Datei öffnen"}, "icon": "folder_open", "active": true, "src": "https://openscd.github.io/oscd-open/oscd-open.js"}, 
    {"name": "Save File", "translations": {"de": "Datei speichern"}, "icon": "save", "active": true, "src": "https://openscd.github.io/oscd-save/oscd-save.js"}
  ],
  "editor": 
  [
    {"name": "Subscriber Later Binding", "translations": {"de": "Späte Bindung des Abonnenten", "pt": "Associação Tardia de Assinante"}, "icon": "link", "active": true, "requireDoc": true, "src": "https://danyill.github.io/oscd-subscriber-later-binding/oscd-subscriber-later-binding.js"}
  ]
}

console.log(`https://openscd.github.io/open-scd/?plugins=${encodeURI(JSON.stringify(plugins))}`)

I would also like to know how to do this locally.

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