Skip to content

Add option --install-npm to build.php to install from NPM directly.#453

Open
Sven65 wants to merge 1 commit into
mainfrom
feat/install-npm
Open

Add option --install-npm to build.php to install from NPM directly.#453
Sven65 wants to merge 1 commit into
mainfrom
feat/install-npm

Conversation

@Sven65

@Sven65 Sven65 commented Sep 24, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud

Copy link
Copy Markdown

Comment thread build.php
} elseif(file_exists('package-lock.json') && file_exists('gulp.js') && is_array($argv) && in_array('--allow-gulp', $argv)) {
$buildCommands[] = 'gulp';
if(is_array($argv) && !in_array('--install-npm', $argv)) {
$buildCommands[] = 'npm install --no-progress --no-audit';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old behaviour should be default, in order to be backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants