framework/extensions/subscriptions/composer.json
Sami Mazouz 62a396e434
feat: send notifications of a new reply when post is approved (#3656)
* test(subscriptions): approved reply sends out notifications to users

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* feat: send notifications when a post is approved

The code in approval was extracted into a listener because no matter what listeners are always executed before subscribers even if the extension is set to load before.

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2022-11-07 11:52:28 +00:00

96 lines
2.6 KiB
JSON

{
"name": "flarum/subscriptions",
"description": "Allow users to follow discussions and receive notifications for new posts.",
"type": "flarum-extension",
"keywords": [
"discussion"
],
"license": "MIT",
"support": {
"issues": "https://github.com/flarum/framework/issues",
"source": "https://github.com/flarum/subscriptions",
"forum": "https://discuss.flarum.org"
},
"homepage": "https://flarum.org",
"funding": [
{
"type": "website",
"url": "https://flarum.org/donate/"
}
],
"require": {
"flarum/core": "^1.5"
},
"autoload": {
"psr-4": {
"Flarum\\Subscriptions\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
},
"flarum-extension": {
"title": "Subscriptions",
"category": "feature",
"optional-dependencies": [
"flarum/approval"
],
"icon": {
"name": "fas fa-star",
"backgroundColor": "#ffea7b",
"color": "#de8e00"
}
},
"flarum-cli": {
"modules": {
"admin": false,
"forum": true,
"js": true,
"jsCommon": false,
"css": true,
"gitConf": true,
"githubActions": true,
"prettier": true,
"typescript": false,
"bundlewatch": false,
"backendTesting": true,
"editorConfig": true,
"styleci": true
}
}
},
"repositories": [
{
"type": "path",
"url": "../../*/*"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload-dev": {
"psr-4": {
"Flarum\\Subscriptions\\Tests\\": "tests/"
}
},
"scripts": {
"test": [
"@test:unit",
"@test:integration"
],
"test:unit": "phpunit -c tests/phpunit.unit.xml",
"test:integration": "phpunit -c tests/phpunit.integration.xml",
"test:setup": "@php tests/integration/setup.php"
},
"scripts-descriptions": {
"test": "Runs all tests.",
"test:unit": "Runs all unit tests.",
"test:integration": "Runs all integration tests.",
"test:setup": "Sets up a database for use with integration tests. Execute this only once."
},
"require-dev": {
"flarum/testing": "^1.0.0",
"flarum/approval": "@dev"
}
}