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

Issue #3447329 by pivica: Add css dev build script to package.json

parent 8beed159
No related branches found
No related tags found
1 merge request!5Issue #3447329 by pivica: Add css dev build script to package.json
......@@ -225,3 +225,15 @@ function bs_bootstrap_bs_update_8008($target_theme_name) {
]);
}
}
/**
* Add build-css-dev command to package.json.
*/
function bs_bootstrap_bs_update_8009($target_theme_name) {
$themes_info = _bs_base_drupal_theme_list_info();
if (isset($themes_info[$target_theme_name])) {
_bs_base_regexp_file($themes_info[$target_theme_name]->subpath . '/package.json', [
'^.*"build-css": ".*",\n' => ' "build-css": "npx gulp clean:css && npx gulp sass",' . "\n" . ' "build-css-dev": "npx gulp clean:css && npx gulp sass:dev",' . "\n",
]);
}
}
......@@ -33,6 +33,7 @@
"build-install": "((type pnpm && pnpm install) || npm install)",
"build-browsers": "npx browserslist@latest --update-db",
"build-css": "npx gulp clean:css && npx gulp sass",
"build-css-dev": "npx gulp clean:css && npx gulp sass:dev",
"build-icons": "fantasticon",
"build": "npm run build-install & npm run build-icons &npm run build-browsers & npm run build-css"
}
......
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