diff --git a/build.php b/build.php index 620518b2..48ec59a4 100644 --- a/build.php +++ b/build.php @@ -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 */ @@ -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', @@ -72,7 +61,6 @@ 'package.json', 'phpunit.xml.dist', 'README.md', - 'gulpfile.js', './node_modules/', './source/sass/', './source/js/',