Skip to content

Commit

Permalink
Drop "gulp-stylelint", update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 20, 2023
1 parent 1a5c691 commit 792d064
Show file tree
Hide file tree
Showing 9 changed files with 3,935 additions and 2,228 deletions.
7 changes: 4 additions & 3 deletions package/yast2-theme.changes
@@ -1,9 +1,10 @@
-------------------------------------------------------------------
Fri Oct 20 07:53:13 UTC 2023 - Ladislav Slezák <lslezak@suse.com>

- Updated internal build dependencies reported by dependabot:
- Bump stylelint from 15.6.0 to 15.10.1
- Bump postcss from 8.4.25 to 8.4.31
- Dropped unmaintained "gulp-stylelint" internal development dependency
- Manually updated the internal development dependencies to the latest
NPM packages
- The stylesheets have been rebuilt with the new dependencies
- Updated README.md
- 5.0.1

Expand Down
15 changes: 6 additions & 9 deletions src/gulpfile.js
@@ -1,8 +1,8 @@
const gulp = require('gulp');
const gulpStylelint = require('gulp-stylelint');
const sass = require('gulp-sass')(require('sass'));
const rename = require('gulp-rename');
const header = require('gulp-header');
const spawn = require('child_process').spawn;

let path = {
src_source: 'scss',
Expand Down Expand Up @@ -49,14 +49,11 @@ const buildThemes = (done) => {
})();
};

gulp.task('lint', function () {
return gulp
.src('**/*.scss')
.pipe(gulpStylelint({
reporters: [
{formatter: 'string', console: true}
]
}));
gulp.task('lint', function (cb) {
const cmd = spawn('npx', ['stylelint', '**/*.scss'], {stdio: 'inherit'});
cmd.on('close', function (code) {
cb(code);
});
});

gulp.task('default', gulp.series(buildThemes));

0 comments on commit 792d064

Please sign in to comment.