mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
Group assets by client in extension stub
This commit is contained in:
parent
9a41526310
commit
526b2c48df
|
@ -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…
Reference in New Issue
Block a user