mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +02:00
Group assets by client in extension stub
This commit is contained in:
@@ -94,7 +94,7 @@ class GenerateExtensionCommand extends Command
|
|||||||
|
|
||||||
file_put_contents($dir.'/flarum.json', json_encode($manifest, JSON_PRETTY_PRINT));
|
file_put_contents($dir.'/flarum.json', json_encode($manifest, JSON_PRETTY_PRINT));
|
||||||
|
|
||||||
passthru("cd $dir; composer install; cd js; npm install; gulp");
|
passthru("cd $dir; composer install; cd js/forum; npm install; gulp");
|
||||||
|
|
||||||
$this->info('Extension "'.$name.'" generated!');
|
$this->info('Extension "'.$name.'" generated!');
|
||||||
}
|
}
|
||||||
|
@@ -20,8 +20,8 @@ class AddClientAssets
|
|||||||
public function addAssets(BuildClientView $event)
|
public function addAssets(BuildClientView $event)
|
||||||
{
|
{
|
||||||
$event->forumAssets([
|
$event->forumAssets([
|
||||||
__DIR__.'/../../js/dist/extension.js',
|
__DIR__.'/../../js/forum/dist/extension.js',
|
||||||
__DIR__.'/../../less/extension.less'
|
__DIR__.'/../../less/forum/extension.less'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$event->forumBootstrapper('{{name}}/main');
|
$event->forumBootstrapper('{{name}}/main');
|
||||||
|
Reference in New Issue
Block a user