Skip to content

Commit

Permalink
Adjust repository layout for NotificationBox
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Aug 7, 2024
1 parent 48d91f5 commit 04eecbb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions NotificationBox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
},
"experiment_apis": {
"NotificationBox": {
"schema": "NotificationBox/schema.json",
"schema": "experiments/NotificationBox/schema/notification-box.json",
"parent": {
"scopes": ["addon_parent"],
"paths": [["NotificationBox"]],
"script": "NotificationBox/implementation.js"
"script": "experiments/NotificationBox/parent/ext-notification-box.js"
}
}
}
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,20 @@ official [communication channels](https://developer.thunderbird.net/add-ons/comm
to tell you more about how they work, and engage in some ad-hoc discussion on how to design WebExtension
APIs.

Migrating from Legacy Add-ons
Using experiments in your add-ons
---------------------------------

The repository layout is conveniently written so you can collect the experiments in a subdirectory of your add-on.

```
mkdir -p my_addon_directory/experiments
cp -R webext-experiments/calendar/experiments/ my_addon_directory/experiments
```

Now copy the respective `experiment_apis` entries in e.g. `calendar/manifest.json` to your add-on's manifest.json.


Migratin from Legacy Add-ons
-----------------------------
If you are migrating your legacy add-on to WebExtensions, you may need to rethink how your UI is
presented, possibly in a way that seems less integrated. It may also mean that certain features will
Expand Down

0 comments on commit 04eecbb

Please sign in to comment.