Skip to content

Commit

Permalink
Remove gulp and commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven65 committed Sep 24, 2024
1 parent 6674536 commit 5116b93
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/* Parameters:
--no-composer Does not install vendors. Just create the autoloader.
--cleanup Remove removeables.
--allow-gulp Allow gulp to be used.
--install-npm Install NPM package instead
*/

Expand Down Expand Up @@ -46,16 +45,6 @@
}
}

//Run build if package-lock.json is found
if(file_exists('package-lock.json') && !file_exists('gulp.js')) {
$buildCommands[] = 'npx --yes browserslist@latest --update-db';
//$buildCommands[] = 'npm run build';

//$buildCommands[] = 'npm run build';
} elseif(file_exists('package-lock.json') && file_exists('gulp.js') && is_array($argv) && in_array('--allow-gulp', $argv)) {
$buildCommands[] = 'gulp';
}

// Files and directories not suitable for prod to be removed.
$removables = [
'.git',
Expand All @@ -72,7 +61,6 @@
'package.json',
'phpunit.xml.dist',
'README.md',
'gulpfile.js',
'./node_modules/',
'./source/sass/',
'./source/js/',
Expand Down

0 comments on commit 5116b93

Please sign in to comment.