mirror of
https://github.com/flarum/core.git
synced 2025-02-24 19:23:01 +01:00
Group assets by client in extension stub
This commit is contained in:
parent
4fb292a777
commit
6c50f1614b
@ -94,7 +94,7 @@ class GenerateExtensionCommand extends Command
|
||||
|
||||
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!');
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ class AddClientAssets
|
||||
public function addAssets(BuildClientView $event)
|
||||
{
|
||||
$event->forumAssets([
|
||||
__DIR__.'/../../js/dist/extension.js',
|
||||
__DIR__.'/../../less/extension.less'
|
||||
__DIR__.'/../../js/forum/dist/extension.js',
|
||||
__DIR__.'/../../less/forum/extension.less'
|
||||
]);
|
||||
|
||||
$event->forumBootstrapper('{{name}}/main');
|
||||
|
Loading…
x
Reference in New Issue
Block a user