iodide-project / iodide-project/iodide
Add a depends member to the plugin definition
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
Posted this on gitter but here it is as an issue.
A suggestion - add a depends member to the plugin definition that enables the import of other JS or CSS libs, e.g..:
{
"languageId": "plantuml",
"displayName": "PlantUml",
"codeMirrorMode": "",
"keybinding": "x",
"url": "https://raw.githubusercontent.com/six42/iodide-plantuml-plugin/master/src/iodide-plantuml-plugin.js",
"depends": [{
"type": "js",
"url": "https://raw.githubusercontent.com/johan/js-deflate/master/rawdeflate.js"
}],
"module": "plantuml",
"evaluator": "plantuml_img",
"pluginType": "language"
}
Contributor guide
Research direction
Start by locating how plugin definitions are read and how their URLs are loaded. Use the PlantUml example in the issue to verify that a depends member can declare JavaScript and CSS libraries and that those dependencies are imported before the plugin runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100