Skip to content
Snippets Groups Projects
Commit 8e2a9ffa authored by Ivica Puljic's avatar Ivica Puljic
Browse files

Issue #3397960 by pivica: Remove npm-run-all from build process

parent 5ab7af7c
No related branches found
No related tags found
No related merge requests found
......@@ -209,3 +209,19 @@ function bs_bootstrap_bs_update_8007($target_theme_name) {
}
}
/**
* Do not use npm-run-all.
*/
function bs_bootstrap_bs_update_8008($target_theme_name) {
$themes_info = _bs_base_drupal_theme_list_info();
if (isset($themes_info[$target_theme_name])) {
// package.json changes.
_bs_base_regexp_file($themes_info[$target_theme_name]->subpath . '/package.json', [
// Remove npm-run-all.
'^.*"npm-run-all": ".*",\n' => "",
// Change build command.
'"npm-run-all build-install build-icons build-browsers build-css"' => '"npm run build-install & npm run build-icons &npm run build-browsers & npm run build-css"',
]);
}
}
......@@ -24,7 +24,6 @@
"gulp-strip-css-comments": "^2.0.0",
"js-yaml": "^4.1.0",
"node-sass": "^8.0.0",
"npm-run-all": "^4.1.5",
"picocolors": "^1.0.0",
"postcss": "^8.4.21",
"postcss-reporter": "^7.0.5",
......@@ -35,6 +34,6 @@
"build-browsers": "npx browserslist@latest --update-db",
"build-css": "npx gulp clean:css && npx gulp sass",
"build-icons": "fantasticon",
"build": "npm-run-all build-install build-icons build-browsers build-css"
"build": "npm run build-install & npm run build-icons &npm run build-browsers & npm run build-css"
}
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment