-
Notifications
You must be signed in to change notification settings - Fork 1
Create NPM Module #1
Comments
@pavlovcik would like to work on it, but shouldn't you merge back your Ubiquibot fork? |
I have a few things on my plate now so you may be better off just working on my fork lol |
/start |
Tips:
|
@FernandVEYRIER please refer to the kernel code when designing this. For context: the kernel is still in a very young development stage. Just to get started we are including some simple GitHub webhook event handlers inside of the kernel. However the plan is to move all of these event handlers into seperate plugins (loaded in from separate codebases) And here is how it is currently mounted: https://github.com/ubiquity/ubiquibot-kernel/blob/development/src/github/handlers/index.ts I was doing some research around this earlier in the week, and when I loaded the configuration, I would need to do that right after the plugin module's entry (like within the first line of code inside of the function body i.e. here.) There is a lot of noise in my example because I would not have pushed it under normal circumstances but I wanted to share my insights. |
@pavlovcik Okay thanks for the info. Shouldn't I just focus for now on separating the configuration from the code to make it a standalone easy to integrate in any other project? |
Yes I just wanted to provide context so you know how it is likely to be implemented. |
Now you probably have a better idea of why I want to make a local office. Fast iteration across multiple interconnected systems may be easier in the same room with a whiteboard occasionally. |
I noticed that you have already a repository for NPM packages, currently used for the Ubiquibot logs I think what is needed would be a file representing all the services and the communication with each module of the whole project |
It's a good idea although I fear that depending on the level of detail it can become deprecated quite fast. I'll see if I can get some help from ChatGPT. |
+ Evaluating results. Please wait... |
Looks like the private key is wrong on this org. We need to fix this from the code to take the private key from the runtime secrets (netlify) but let me try and make a quick fix here. |
+ Evaluating results. Please wait... |
Plugin developers need to import the configuration to modify the output of their plugins. We should make this as simple as possible with an NPM module. This module should abstract away the following:
Pseudo code (I didn't deeply think through this):
Original post: ubiquity/pay.ubq.fi#135 (comment)
The text was updated successfully, but these errors were encountered: