-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64aaf74
commit 18d8875
Showing
3 changed files
with
27 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# OpenSCD Core should support Addons | ||
|
||
Date: 2023-06-05 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
The OpenSCD-core package currently consists of the custom WebComponent `open-scd` and the agreed upon API's + custom Events. | ||
This means that every plugin that uses the API or custom Events from OpenSCD-Core, needs to have `open-scd-core` as a NPM dependency (or copy the needed code for itself). | ||
|
||
|
||
## Decision | ||
`OpenSCD-Core` should be split up into multiple packages. This way, plugins can directly depend on `OpenSCD-Core` (Which contains the agreed API). | ||
|
||
### Solution | ||
We can split up `OpenSCD-Core` into multiple packages; 1 Package that contains the custom WebComponent `OpenSCD`. 1 Package that contains the agreed API. | ||
The custom WebComponent is depending on the package that has the agreed API. | ||
|
||
All the plugins have a dependency (if needed) on the agreed API. | ||
|
||
![Proposal](./openscd-core-split.svg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.