Merge pull request #6212 from marc1706/ticket/16746

[ticket/16746] Update node dev dependencies to latest versions & fix gulp
This commit is contained in:
Marc Alexander 2021-05-14 09:03:51 +02:00 committed by GitHub
commit 726c90668e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5138 additions and 4622 deletions

View file

@ -14,230 +14,193 @@
} }
], ],
"properties-order": [ "properties-order": [
{ "font",
"emptyLineBefore": false, "font-family",
"properties": [ "font-size",
"font", "font-weight",
"font-family", "font-style",
"font-size", "font-variant",
"font-weight", "font-size-adjust",
"font-style", "font-stretch",
"font-variant", "font-effect",
"font-size-adjust", "font-emphasize",
"font-stretch", "font-emphasize-position",
"font-effect", "font-emphasize-style",
"font-emphasize", "font-smooth",
"font-emphasize-position", "font-smoothing",
"font-emphasize-style", "line-height",
"font-smooth", "text-align",
"font-smoothing", "text-align-last",
"line-height", "vertical-align",
"text-align", "white-space",
"text-align-last", "text-decoration",
"vertical-align", "text-emphasis",
"white-space", "text-emphasis-color",
"text-decoration", "text-emphasis-style",
"text-emphasis", "text-emphasis-position",
"text-emphasis-color", "text-indent",
"text-emphasis-style", "text-justify",
"text-emphasis-position", "letter-spacing",
"text-indent", "word-spacing",
"text-justify", "writing-mode",
"letter-spacing", "text-outline",
"word-spacing", "text-transform",
"writing-mode", "text-size-adjust",
"text-outline", "text-wrap",
"text-transform", "text-overflow",
"text-size-adjust", "text-overflow-ellipsis",
"text-wrap", "text-overflow-mode",
"text-overflow", "word-wrap",
"text-overflow-ellipsis", "word-break",
"text-overflow-mode", "tab-size",
"word-wrap", "hyphens",
"word-break",
"tab-size", "background",
"hyphens" "background-color",
] "background-image",
}, "background-repeat",
{ "background-attachment",
"emptyLineBefore": false, "background-position",
"properties": [ "background-position-x",
"background", "background-position-y",
"background-color", "background-clip",
"background-image", "background-origin",
"background-repeat", "background-size",
"background-attachment", "interpolation-mode",
"background-position", "filter",
"background-position-x", "border",
"background-position-y", "border-width",
"background-clip", "border-style",
"background-origin", "border-color",
"background-size", "border-top",
"interpolation-mode", "border-top-width",
"filter", "border-top-style",
"border", "border-top-color",
"border-width", "border-right",
"border-style", "border-right-width",
"border-color", "border-right-style",
"border-top", "border-right-color",
"border-top-width", "border-bottom",
"border-top-style", "border-bottom-width",
"border-top-color", "border-bottom-style",
"border-right", "border-bottom-color",
"border-right-width", "border-left",
"border-right-style", "border-left-width",
"border-right-color", "border-left-style",
"border-bottom", "border-left-color",
"border-bottom-width", "border-radius",
"border-bottom-style", "border-top-left-radius",
"border-bottom-color", "border-top-right-radius",
"border-left", "border-bottom-right-radius",
"border-left-width", "border-bottom-left-radius",
"border-left-style", "border-image",
"border-left-color", "border-image-source",
"border-radius", "border-image-slice",
"border-top-left-radius", "border-image-width",
"border-top-right-radius", "border-image-outset",
"border-bottom-right-radius", "border-image-repeat",
"border-bottom-left-radius", "outline",
"border-image", "outline-width",
"border-image-source", "outline-style",
"border-image-slice", "outline-color",
"border-image-width", "outline-offset",
"border-image-outset", "tap-highlight-color",
"border-image-repeat",
"outline", "box-decoration-break",
"outline-width", "box-shadow",
"outline-style", "text-shadow",
"outline-color",
"outline-offset", "color",
"tap-highlight-color" "opacity",
]
}, "position",
{ "z-index",
"emptyLineBefore": false, "top",
"properties": [ "right",
"box-decoration-break", "bottom",
"box-shadow", "left",
"text-shadow"
] "display",
}, "visibility",
{ "float",
"emptyLineBefore": false, "clear",
"properties": [ "overflow",
"color", "overflow-x",
"opacity" "overflow-y",
] "overflow-scrolling",
}, "clip",
{ "zoom",
"emptyLineBefore": false, "flex",
"properties": [ "flex-direction",
"position", "flex-order",
"z-index", "flex-pack",
"top", "flex-align",
"right", "flex-grow",
"bottom", "flex-shrink",
"left" "flex-basis",
] "flex-wrap",
}, "justify-content",
{ "align-items",
"emptyLineBefore": false, "align-self",
"properties": [
"display", "box-sizing",
"visibility", "width",
"float", "min-width",
"clear", "max-width",
"overflow", "height",
"overflow-x", "min-height",
"overflow-y", "max-height",
"overflow-scrolling", "margin",
"clip", "margin-top",
"zoom", "margin-right",
"flex", "margin-bottom",
"flex-direction", "margin-left",
"flex-order", "padding",
"flex-pack", "padding-top",
"flex-align", "padding-right",
"flex-basis", "padding-bottom",
"flex-grow", "padding-left",
"flex-shrink",
"flex-wrap", "table-layout",
"justify-content", "empty-cells",
"align-items", "caption-side",
"align-self" "border-spacing",
] "border-collapse",
}, "list-style",
{ "list-style-position",
"emptyLineBefore": false, "list-style-type",
"properties": [ "list-style-image",
"box-sizing",
"width", "content",
"min-width", "quotes",
"max-width", "counter-reset",
"height", "counter-increment",
"min-height", "resize",
"max-height", "cursor",
"margin", "touch-callout",
"margin-top", "touch-action",
"margin-right", "user-select",
"margin-bottom", "nav-index",
"margin-left", "nav-up",
"padding", "nav-right",
"padding-top", "nav-down",
"padding-right", "nav-left",
"padding-bottom", "transition",
"padding-left" "transition-delay",
] "transition-timing-function",
}, "transition-duration",
{ "transition-property",
"emptyLineBefore": false, "transform",
"properties": [ "transform-origin",
"table-layout", "animation",
"empty-cells", "animation-name",
"caption-side", "animation-duration",
"border-spacing", "animation-play-state",
"border-collapse", "animation-timing-function",
"list-style", "animation-delay",
"list-style-position", "animation-iteration-count",
"list-style-type", "animation-direction",
"list-style-image" "pointer-events"
]
},
{
"emptyLineBefore": false,
"properties": [
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"cursor",
"touch-callout",
"touch-action",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"transition",
"transition-delay",
"transition-timing-function",
"transition-duration",
"transition-property",
"transform",
"transform-origin",
"animation",
"animation-name",
"animation-duration",
"animation-play-state",
"animation-timing-function",
"animation-delay",
"animation-iteration-count",
"animation-direction",
"pointer-events"
]
}
], ],
"unspecified-properties-position": "bottomAlphabetical" "unspecified-properties-position": "bottomAlphabetical"
} }

View file

@ -2,7 +2,7 @@
const del = require('del'); const del = require('del');
const gulp = require('gulp'); const gulp = require('gulp');
const autoprefixer = require('gulp-autoprefixer'); const autoprefixer = require('autoprefixer');
// const sass = require('gulp-sass'); // const sass = require('gulp-sass');
const rename = require('gulp-rename'); const rename = require('gulp-rename');
const sourcemaps = require('gulp-sourcemaps'); const sourcemaps = require('gulp-sourcemaps');
@ -19,26 +19,24 @@ const build = {
css: './phpBB/styles/prosilver/theme/', css: './phpBB/styles/prosilver/theme/',
}; };
gulp.task('css', () => { gulp.task('css', gulp.series(() => {
const css = gulp return gulp
.src(build.css + '*.css') .src(build.css + '*.css')
.pipe(autoprefixer())
.pipe( .pipe(
postcss([ postcss([
autoprefixer(),
sorting(sortOrder), sorting(sortOrder),
]), ]),
) )
.pipe(gulp.dest(build.css)); .pipe(gulp.dest(build.css));
}));
return css; gulp.task('clean', gulp.series(() => {
});
gulp.task('clean', () => {
del([ 'dist' ]); del([ 'dist' ]);
}); }));
gulp.task('minify', () => { gulp.task('minify', gulp.series(() => {
const css = gulp return gulp
.src(build.css + '/bidi.css') .src(build.css + '/bidi.css')
.pipe(sourcemaps.init()) .pipe(sourcemaps.init())
.pipe( .pipe(
@ -53,12 +51,10 @@ gulp.task('minify', () => {
})) }))
.pipe(sourcemaps.write('./')) .pipe(sourcemaps.write('./'))
.pipe(gulp.dest(build.css)); .pipe(gulp.dest(build.css));
}));
return css; gulp.task('watch', gulp.series(() => {
}); gulp.watch('phpBB/styles/prosilver/theme/*.css', gulp.series('css'));
}));
gulp.task('watch', () => { gulp.task('default', gulp.series('css', 'watch'));
gulp.watch('phpBB/styles/prosilver/theme/*.css', [ 'css' ]);
});
gulp.task('default', [ 'css', 'watch' ]);

9286
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -90,20 +90,21 @@
}, },
"homepage": "https://www.phpbb.com", "homepage": "https://www.phpbb.com",
"devDependencies": { "devDependencies": {
"cssnano": "4.1.10", "autoprefixer": "^10.2.5",
"del": "5.1.0", "cssnano": "^5.0.2",
"gulp": "4.0.2", "del": "^6.0.0",
"gulp-autoprefixer": "7.0.1", "gulp": "^4.0.2",
"gulp-postcss": "8.0.0", "gulp-postcss": "^9.0.0",
"gulp-rename": "2.0.0", "gulp-rename": "^2.0.0",
"gulp-sass": "4.0.2", "gulp-sass": "^4.1.0",
"gulp-sourcemaps": "2.6.5", "gulp-sourcemaps": "^3.0.0",
"postcss-import": "12.0.1", "postcss": "^8.2.15",
"postcss-pxtorem": "5.1.1", "postcss-import": "^14.0.2",
"postcss-sorting": "5.0.1", "postcss-pxtorem": "^6.0.0",
"stylelint": "13.2.1", "postcss-sorting": "^6.0.0",
"stylelint-order": "4.0.0", "stylelint": "^13.13.1",
"xo": "^0.33.1", "stylelint-order": "^4.1.0",
"yargs-parser": ">=13.1.2" "xo": "^0.40.1",
"yargs-parser": "^20.2.7"
} }
} }