Group assets by client in extension stub

This commit is contained in:
Toby Zerner 2015-07-22 10:12:11 +09:30
parent 9a41526310
commit 526b2c48df
6 changed files with 3 additions and 3 deletions

View File

@ -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!');
}

View File

@ -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');