Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust repository layout for NotificationBox #33

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ 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.

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.


Migrating from Legacy Add-ons
-----------------------------
If you are migrating your legacy add-on to WebExtensions, you may need to rethink how your UI is
Expand Down