Skip to content

Commit

Permalink
chore: enable phpstan (#13)
Browse files Browse the repository at this point in the history
* chore: enable phpstan

* chore: bump js deps
  • Loading branch information
imorland authored Nov 12, 2023
1 parent 759685c commit 9159035
Show file tree
Hide file tree
Showing 6 changed files with 736 additions and 785 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: FoF Default User Preferences 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: .
4 changes: 2 additions & 2 deletions .github/workflows/build.yml → .github/workflows/frontend.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Javascript
name: FoF Default User Preferences JS

on: [workflow_dispatch, push, pull_request]

Expand All @@ -8,7 +8,7 @@ jobs:
with:
enable_bundlewatch: false
enable_prettier: true
enable_typescript: false
enable_typescript: true

frontend_directory: ./js
backend_directory: .
Expand Down
113 changes: 64 additions & 49 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,68 @@
{
"name": "fof/default-user-preferences",
"description": "Configure the default user preferences for new users joining your forum",
"keywords": [
"flarum"
],
"type": "flarum-extension",
"license": "MIT",
"homepage": "https://friendsofflarum.org",
"funding": [
{
"type": "website",
"url": "https://opencollective.com/fof/donate"
}
],
"support": {
"issues": "https://github.com/FriendsOfFlarum/default-user-preferences/issues",
"source": "https://github.com/FriendsOfFlarum/default-user-preferences",
"forum": "https://discuss.flarum.org/d/18607"
},
"require": {
"flarum/core": "^1.6.2"
},
"replace": {
"piotr-tokarczyk/flarum-user-default-preferences": "*"
},
"authors": [
{
"name": "FoF Team",
"email": "[email protected]",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"FoF\\DefaultUserPreferences\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "FoF Default User Preferences",
"category": "feature",
"icon": {
"name": "fas fa-reply-all",
"backgroundColor": "#e74c3c",
"color": "#fff"
}
"name": "fof/default-user-preferences",
"description": "Configure the default user preferences for new users joining your forum",
"keywords": [
"flarum"
],
"type": "flarum-extension",
"license": "MIT",
"homepage": "https://friendsofflarum.org",
"funding": [
{
"type": "website",
"url": "https://opencollective.com/fof/donate"
}
],
"support": {
"issues": "https://github.com/FriendsOfFlarum/default-user-preferences/issues",
"source": "https://github.com/FriendsOfFlarum/default-user-preferences",
"forum": "https://discuss.flarum.org/d/18607"
},
"require": {
"flarum/core": "^1.6.2"
},
"replace": {
"piotr-tokarczyk/flarum-user-default-preferences": "*"
},
"authors": [
{
"name": "FoF Team",
"email": "[email protected]",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"FoF\\DefaultUserPreferences\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "FoF Default User Preferences",
"category": "feature",
"icon": {
"name": "fas fa-reply-all",
"backgroundColor": "#e74c3c",
"color": "#fff"
}
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/18607"
},
"flarum-cli": {
"modules": {
"githubActions": true
}
}
},
"require-dev": {
"flarum/phpstan": "*"
},
"scripts": {
"analyse:phpstan": "phpstan analyse",
"clear-cache:phpstan": "phpstan clear-result-cache"
},
"flagrow": {
"discuss": "https://discuss.flarum.org/d/18607"
"scripts-descriptions": {
"analyse:phpstan": "Run static analysis"
}
}
}
Loading

0 comments on commit 9159035

Please sign in to comment.