Coder Social home page Coder Social logo

Comments (7)

nxnminieye avatar nxnminieye commented on July 20, 2024 1

插件也可以转化为”拓展层 + UI层“组合的模式。将插件自身功能注册到全局功能注册表中,供插件之间交叉调用

拓展层可以和现有插件兼容,在preload.js中暴露提供的功能,然后其他需要调用这个扩展层的插件,增加个字段

"runtime": [
    "runtime1.name", "runtime2.name"
 ]

加载扩展层插件的preload.js就可以了

from rubick.

SOVLOOKUP avatar SOVLOOKUP commented on July 20, 2024

插件也可以转化为”拓展层 + UI层“组合的模式。将插件自身功能注册到全局功能注册表中,供插件之间交叉调用

from rubick.

SOVLOOKUP avatar SOVLOOKUP commented on July 20, 2024

如何在插件开发生产环境中处理插件间的依赖关系?

可能的解决方案:

  1. 建立一个开发者中心插件,为开发者提供插件调试环境

  2. 处理版本管理的问题,我想可以复用 npm 的包管理系统,让开发者把自己的插件发布到 npm , rubick 也从 npm拉取插件安装。

from rubick.

muwoo avatar muwoo commented on July 20, 2024

如何在插件开发生产环境中处理插件间的依赖关系?

可能的解决方案:

  1. 建立一个开发者中心插件,为开发者提供插件调试环境
  2. 处理版本管理的问题,我想可以复用 npm 的包管理系统,让开发者把自己的插件发布到 npm , rubick 也从 npm拉取插件安装。

这个正是我想搞的,计划把插件全部托管到npm上,通过npm进行管理。目前也正在进行

from rubick.

renmu123 avatar renmu123 commented on July 20, 2024

这里可以参考obsidian插件的处理方式,插件本身都是开源托管在GitHub中,插件开发者需要pr自己的插件信息到软件的插件.json中。这样可以达成某种程度上的审核,以及不占用额外的看见,缺点介绍国内用户下载可能有问题,可能可以支持码云等国内托管平台

from rubick.

muwoo avatar muwoo commented on July 20, 2024

这里可以参考obsidian插件的处理方式,插件本身都是开源托管在GitHub中,插件开发者需要pr自己的插件信息到软件的插件.json中。这样可以达成某种程度上的审核,以及不占用额外的看见,缺点介绍国内用户下载可能有问题,可能可以支持码云等国内托管平台

so surprise! 这个感觉可以!感谢,有灵感了

from rubick.

SOVLOOKUP avatar SOVLOOKUP commented on July 20, 2024

jsdelivr.com 有 github 的全球 CDN, 通过这个渠道国内也能正常下载 github 上托管的插件

from rubick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.