Skip to content

Instantly share code, notes, and snippets.

@blurymind
Last active April 6, 2024 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blurymind/2ff124dc94f936e8f7d96632f559aecb to your computer and use it in GitHub Desktop.
Save blurymind/2ff124dc94f936e8f7d96632f559aecb to your computer and use it in GitHub Desktop.
yarn-extensions-test
module.exports = function yarnDemoPlugin({
app,
createButton,
createToggle,
getPluginStore,
setPluginStore,
addSettingsItem,
onYarnLoadedData,
onYarnEditorOpen,
onYarnInPreviewMode,
onYarnSavedNode,
onYarnSetLanguage,
onYarnLoadedStateFromLocalStorage,
onYarnSavedStateToLocalStorage,
onYarnSetDocumentType,
onKeyUp,
onKeyDown,
onLoad,
}) {
console.log("Plugin initiated", {app})
return {
dependencies: ["https://unpkg.com/kaboom@0.5.1/dist/kaboom.js"]
};
};
@blurymind
Copy link
Author

ideas for plugins:

  • add extra node colors (or a color selector)
  • custom previewers
  • custom autocompleters
  • custom menu options

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