Skip to content

Commit

Permalink
Beta 14
Browse files Browse the repository at this point in the history
  • Loading branch information
karaok491 committed Dec 8, 2020
1 parent 7f779d2 commit 1a5acf5
Show file tree
Hide file tree
Showing 9 changed files with 1,304 additions and 1,380 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build JavaScript assets

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: flarum/action-build@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
js/dist
js/node_modules
vendor
composer.lock
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
],
"type": "flarum-extension",
"license": "MIT",
"support": {
"issues": "https://github.com/FriendsOfFlarum/open-collective/issues",
"source": "https://github.com/FriendsOfFlarum/open-collective"
},
"require": {
"flarum/core": "^0.1.0-beta.9",
"fof/components": ">=0.1.1",
"fof/console": "^0.5.0",
"flarum/core": ">=0.1.0-beta.14 <0.1.0-beta.15",
"fof/components": ">=0.2.0",
"fof/console": "^0.6.0",
"euautomation/graphql-client": "^0.2.0"
},
"authors": [
Expand All @@ -36,7 +40,7 @@
}
},
"flagrow": {
"discuss": ""
"discuss": "https://discuss.flarum.org/d/22256"
}
}
}
15 changes: 5 additions & 10 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@

namespace FoF\OpenCollective;

use Flarum\Console\Event\Configuring;
use Flarum\Extend;
use Flarum\Foundation\Paths;
use FoF\Components\Extend\AddFofComponents;
use FoF\Console\Extend\EnableConsole;
use FoF\Console\Extend\ScheduleCommand;
use FoF\OpenCollective\Console\UpdateCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Events\Dispatcher;

return [
new AddFofComponents(),
Expand All @@ -29,17 +28,13 @@

new EnableConsole(),
new ScheduleCommand(function (Schedule $schedule) {
$paths = app()->make(Paths::class);
$schedule->command(UpdateCommand::class)
->hourly()
->withoutOverlapping()
->appendOutputTo(storage_path('logs/fof-open-collective.log'));
->appendOutputTo($paths->storage.('logs/fof-open-collective.log'));
}),

new Extend\Compat(function (Dispatcher $events) {
$events->listen(Configuring::class, function (Configuring $event) {
if ($event->app->bound(Schedule::class)) {
$event->addCommand(UpdateCommand::class);
}
});
}),
(new Extend\Console())
->command(UpdateCommand::class),
];
170 changes: 169 additions & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1a5acf5

Please sign in to comment.