Commit 9e938afe authored by Ivica Puljic's avatar Ivica Puljic Committed by Ivica Puljic
Browse files

Issue #3278088 by pivica: Regular node packages update

parent f3e57acc
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -164,3 +164,21 @@ function bs_base_bs_update_8007($target_theme_name) {
    ]);
  }
}

/**
 * Update node js packages.
 */
function bs_base_bs_update_8008($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', [
      '"autoprefixer": ".*"' => '"autoprefixer": "^10.4.5"',
      '"gulp-postcss": ".*"' => '"gulp-postcss": "^9.0.1"',
      '"gulp-sass": ".*"' => '"gulp-sass": "^4.1.1"',
      '"postcss": ".*"' => '"postcss": "^8.4.13"',
      '"postcss-reporter": ".*"' => '"postcss-reporter": "^7.0.5"',
      '"stylelint-scss": ".*"' => '"stylelint-scss": "^3.21.0"',
      '"stylelint-selector-bem-pattern": ".*"' => '"stylelint-selector-bem-pattern": "^2.1.1"',
    ]);
  }
}
+7 −7
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  "private": true,
  "license": "GPL",
  "devDependencies": {
    "autoprefixer": "^10.2.6",
    "autoprefixer": "^10.4.5",
    "css-mqpacker": "^7.0.0",
    "deepmerge": "^4.2.2",
    "del": "^6.0.0",
@@ -14,19 +14,19 @@
    "gulp-debug": "^4.0.0",
    "gulp-load-plugins": "^2.0.7",
    "gulp-plumber": "^1.2.1",
    "gulp-postcss": "^9.0.0",
    "gulp-sass": "^4.1.0",
    "gulp-postcss": "^9.0.1",
    "gulp-sass": "^4.1.1",
    "gulp-sass-inject": "^1.1.1",
    "gulp-sass-lint": "^1.4.0",
    "gulp-strip-css-comments": "^2.0.0",
    "js-yaml": "^4.1.0",
    "postcss": "^8.3.4",
    "postcss-reporter": "^7.0.2",
    "postcss": "^8.4.13",
    "postcss-reporter": "^7.0.5",
    "stylelint": "^13.13.1",
    "stylelint-config-standard": "^22.0.0",
    "stylelint-order": "^4.1.0",
    "stylelint-scss": "^3.19.0",
    "stylelint-selector-bem-pattern": "^2.1.0",
    "stylelint-scss": "^3.21.0",
    "stylelint-selector-bem-pattern": "^2.1.1",
    "through2": "^4.0.2"
  },
  "scripts": {
+2649 −3802

File changed.

Preview size limit exceeded, changes collapsed.

+14 −0
Original line number Diff line number Diff line
@@ -129,3 +129,17 @@ function bs_bootstrap_bs_update_8004($target_theme_name) {
    ]);
  }
}

/**
 * Bootstrap update to 4.6.1.
 */
function bs_bootstrap_bs_update_8005($target_theme_name) {
  $themes_info = _bs_base_drupal_theme_list_info();

  // Update Bootstrap version information in package.json.
  if (isset($themes_info[$target_theme_name])) {
    _bs_base_regexp_file($themes_info[$target_theme_name]->subpath . '/package.json', [
      '"bootstrap": ".*"' => '"bootstrap": "~4.6.1"',
    ]);
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ base theme: bs_base
core_version_requirement: ^8.7.7 || ^9

bs_versions:
  bs_base: 8007
  bs_base: 8008

# @todo - Core does not allow for now themes to declare dependencies on modules.
# @see https://www.drupal.org/project/drupal/issues/474684
Loading