-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
7 changed files
with
97 additions
and
51 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,12 @@ | ||
name: Flarumite Simple Discussion Views PHP | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
jobs: | ||
run: | ||
uses: flarum/framework/.github/workflows/REUSABLE_backend.yml@main | ||
with: | ||
enable_backend_testing: false | ||
enable_phpstan: true | ||
|
||
backend_directory: . |
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
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 |
---|---|---|
@@ -1,41 +1,56 @@ | ||
{ | ||
"name": "flarumite/simple-discussion-views", | ||
"description": "Add view counts to discussions", | ||
"type": "flarum-extension", | ||
"require": { | ||
"flarum/core": "^1.7.0", | ||
"jaybizzle/crawler-detect": "^1.2" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "IanM", | ||
"homepage": "https://discuss.flarum.org/u/ianm", | ||
"role": "Developer" | ||
"name": "flarumite/simple-discussion-views", | ||
"description": "Add view counts to discussions", | ||
"type": "flarum-extension", | ||
"require": { | ||
"flarum/core": "^1.8.0", | ||
"jaybizzle/crawler-detect": "^1.2" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "IanM", | ||
"homepage": "https://discuss.flarum.org/u/ianm", | ||
"role": "Developer" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/flarumite/simple-discussion-views/issues", | ||
"source": "https://github.com/flarumite/simple-discussion-views", | ||
"forum": "https://discuss.flarum.org/d/24002" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Flarumite\\DiscussionViews\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"flarum-extension": { | ||
"title": "Flarumite Simple Discussion Views", | ||
"category": "feature", | ||
"icon": { | ||
"name": "far fa-eye", | ||
"backgroundColor": "#008000", | ||
"color": "#fff" | ||
} | ||
}, | ||
"flarum-cli": { | ||
"modules": { | ||
"githubActions": true | ||
} | ||
} | ||
}, | ||
"conflict": { | ||
"michaelbelgium/flarum-discussion-views": "*" | ||
}, | ||
"require-dev": { | ||
"flarum/phpstan": "*" | ||
}, | ||
"scripts": { | ||
"analyse:phpstan": "phpstan analyse", | ||
"clear-cache:phpstan": "phpstan clear-result-cache" | ||
}, | ||
"scripts-descriptions": { | ||
"analyse:phpstan": "Run static analysis" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/flarumite/simple-discussion-views/issues", | ||
"source": "https://github.com/flarumite/simple-discussion-views", | ||
"forum": "https://discuss.flarum.org/d/24002" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Flarumite\\DiscussionViews\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"flarum-extension": { | ||
"title": "Flarumite Simple Discussion Views", | ||
"category": "feature", | ||
"icon": { | ||
"name": "far fa-eye", | ||
"backgroundColor": "#008000", | ||
"color": "#fff" | ||
} | ||
} | ||
}, | ||
"conflict": { | ||
"michaelbelgium/flarum-discussion-views": "*" | ||
} | ||
} |
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
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,13 @@ | ||
includes: | ||
- vendor/flarum/phpstan/extension.neon | ||
|
||
parameters: | ||
# The level will be increased in Flarum 2.0 | ||
level: 5 | ||
paths: | ||
- extend.php | ||
- src | ||
excludePaths: | ||
- *.blade.php | ||
checkMissingIterableValueType: false | ||
databaseMigrationsPath: ['migrations'] |
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
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