Skip to content

Commit

Permalink
Allow modularity to be build without composer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 25, 2023
1 parent 73bf18b commit 973a8cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
'npm ci --no-progress --no-audit',
'npx --yes browserslist@latest --update-db',
'npm run build',
'composer install --prefer-dist --no-progress --no-dev'
];

//Add composer build, if flag --no-composer is undefined.
if(is_array($argv) && !in_array('--no-composer', $argv) ? '--no-composer' : '') {
$buildCommands[] = 'composer install --prefer-dist --no-progress --no-dev';
}

// Files and directories not suitable for prod to be removed.
$removables = [
'.git',
Expand Down

0 comments on commit 973a8cf

Please sign in to comment.