mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-16 21:58:17 +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 gulp = require('gulp');
|
||||||
const rename = require('gulp-rename');
|
const rename = require('gulp-rename');
|
||||||
const sourcemaps = require('gulp-sourcemaps');
|
const concat = require('gulp-concat');
|
||||||
const concat = require('gulp-concat-css');
|
|
||||||
const postcss = require('gulp-postcss');
|
const postcss = require('gulp-postcss');
|
||||||
const autoprefixer = require('autoprefixer');
|
const autoprefixer = require('autoprefixer');
|
||||||
const cssnano = require('cssnano');
|
const cssnano = require('cssnano');
|
||||||
@ -19,16 +18,14 @@ const paths = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function styles() {
|
function styles() {
|
||||||
return gulp.src(paths.styles.src)
|
return gulp.src(paths.styles.src, { sourcemaps: true })
|
||||||
.pipe(sourcemaps.init())
|
|
||||||
.pipe(
|
.pipe(
|
||||||
postcss([
|
postcss([
|
||||||
autoprefixer(),
|
autoprefixer(),
|
||||||
sorting(sortOrder),
|
sorting(sortOrder),
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
.pipe(sourcemaps.write('./'))
|
.pipe(gulp.dest(paths.styles.css, { sourcemaps: './' }));
|
||||||
.pipe(gulp.dest(paths.styles.css));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function minify() {
|
function minify() {
|
||||||
@ -47,8 +44,7 @@ function minify() {
|
|||||||
paths.styles.css + 'colours.css',
|
paths.styles.css + 'colours.css',
|
||||||
paths.styles.css + 'responsive.css',
|
paths.styles.css + 'responsive.css',
|
||||||
paths.styles.css + 'bidi.css',
|
paths.styles.css + 'bidi.css',
|
||||||
])
|
], { sourcemaps: true })
|
||||||
.pipe(sourcemaps.init())
|
|
||||||
.pipe(concat('stylesheet.css'))
|
.pipe(concat('stylesheet.css'))
|
||||||
.pipe(
|
.pipe(
|
||||||
postcss([
|
postcss([
|
||||||
@ -59,8 +55,7 @@ function minify() {
|
|||||||
suffix: '.min',
|
suffix: '.min',
|
||||||
extname: '.css',
|
extname: '.css',
|
||||||
}))
|
}))
|
||||||
.pipe(sourcemaps.write('./'))
|
.pipe(gulp.dest(paths.styles.css, { sourcemaps: './' }));
|
||||||
.pipe(gulp.dest(paths.styles.css));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function watch() {
|
function watch() {
|
||||||
|
8660
package-lock.json
generated
8660
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -103,11 +103,10 @@
|
|||||||
"cssnano": "^5.1.7",
|
"cssnano": "^5.1.7",
|
||||||
"eslint": "^8.13.0",
|
"eslint": "^8.13.0",
|
||||||
"eslint-config-xo": "^0.40.0",
|
"eslint-config-xo": "^0.40.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^5.0.0",
|
||||||
"gulp-concat-css": "^3.1.0",
|
"gulp-concat": "^2.6.1",
|
||||||
"gulp-postcss": "^9.0.1",
|
"gulp-postcss": "^9.0.1",
|
||||||
"gulp-rename": "^2.0.0",
|
"gulp-rename": "^2.0.0",
|
||||||
"gulp-sourcemaps": "^3.0.0",
|
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
"postcss-sorting": "^7.0.1",
|
"postcss-sorting": "^7.0.1",
|
||||||
"stylelint": "^14.7.0",
|
"stylelint": "^14.7.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user