Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Merge details:

commit a3bb786
Author: Jelle Sebreghts <sebreghts.jelle@gmail.com>
Date:   Wed Jun 24 14:30:18 2020

    Check if yarn install is needed.
  • Loading branch information
Jelle-S committed Jun 24, 2020
2 parents 5dc4876 + a3bb786 commit c2d1e53
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/RoboFileBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,23 +150,25 @@ protected function buildTask($archivename = null)
{
$archive = is_null($archivename) ? $this->time . '.tar.gz' : $archivename;
$collection = $this->collectionBuilder();
$collection
->taskThemeCompile()
->taskExec($this->findExecutable('yarn') . ' run encore production')
->taskThemeClean()
->taskPackageProject($archive)
->ignoreFileNames([
'.gitattributes',
'.gitignore',
'.gitkeep',
'README',
'README.txt',
'README.md',
'LICENSE',
'LICENSE.txt',
'LICENSE.md',
'phpunit.xml.dist'
]);
if (file_exists('package.json')) {
$collection
->taskThemeCompile()
->taskExec($this->findExecutable('yarn') . ' run encore production')
->taskThemeClean();
}
$collection->taskPackageProject($archive)
->ignoreFileNames([
'.gitattributes',
'.gitignore',
'.gitkeep',
'README',
'README.txt',
'README.md',
'LICENSE',
'LICENSE.txt',
'LICENSE.md',
'phpunit.xml.dist'
]);
return $collection;
}

Expand Down

0 comments on commit c2d1e53

Please sign in to comment.