mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-16 13:48:58 +01:00
[ticket/17309] Update gulp and remove no longer needed gulp packages
PHPBB3-17309
This commit is contained in:
parent
222ca643b5
commit
19f534770d
15
gulpfile.js
15
gulpfile.js
@ -2,8 +2,7 @@
|
||||
|
||||
const gulp = require('gulp');
|
||||
const rename = require('gulp-rename');
|
||||
const sourcemaps = require('gulp-sourcemaps');
|
||||
const concat = require('gulp-concat-css');
|
||||
const concat = require('gulp-concat');
|
||||
const postcss = require('gulp-postcss');
|
||||
const autoprefixer = require('autoprefixer');
|
||||
const cssnano = require('cssnano');
|
||||
@ -19,16 +18,14 @@ const paths = {
|
||||
};
|
||||
|
||||
function styles() {
|
||||
return gulp.src(paths.styles.src)
|
||||
.pipe(sourcemaps.init())
|
||||
return gulp.src(paths.styles.src, { sourcemaps: true })
|
||||
.pipe(
|
||||
postcss([
|
||||
autoprefixer(),
|
||||
sorting(sortOrder),
|
||||
]),
|
||||
)
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest(paths.styles.css));
|
||||
.pipe(gulp.dest(paths.styles.css, { sourcemaps: './' }));
|
||||
}
|
||||
|
||||
function minify() {
|
||||
@ -47,8 +44,7 @@ function minify() {
|
||||
paths.styles.css + 'colours.css',
|
||||
paths.styles.css + 'responsive.css',
|
||||
paths.styles.css + 'bidi.css',
|
||||
])
|
||||
.pipe(sourcemaps.init())
|
||||
], { sourcemaps: true })
|
||||
.pipe(concat('stylesheet.css'))
|
||||
.pipe(
|
||||
postcss([
|
||||
@ -59,8 +55,7 @@ function minify() {
|
||||
suffix: '.min',
|
||||
extname: '.css',
|
||||
}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest(paths.styles.css));
|
||||
.pipe(gulp.dest(paths.styles.css, { sourcemaps: './' }));
|
||||
}
|
||||
|
||||
function watch() {
|
||||
|
8672
package-lock.json
generated
8672
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -103,11 +103,10 @@
|
||||
"cssnano": "^5.1.7",
|
||||
"eslint": "^8.13.0",
|
||||
"eslint-config-xo": "^0.40.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-concat-css": "^3.1.0",
|
||||
"gulp": "^5.0.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-postcss": "^9.0.1",
|
||||
"gulp-rename": "^2.0.0",
|
||||
"gulp-sourcemaps": "^3.0.0",
|
||||
"postcss": "^8.4.31",
|
||||
"postcss-sorting": "^7.0.1",
|
||||
"stylelint": "^14.7.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user