[ticket/16414] update pkg.json & gulpjs deps

PHPBB3-16414
This commit is contained in:
hanakin 2020-03-24 09:56:53 -10:00
parent eae537ab14
commit 907ed34d51
2 changed files with 43 additions and 14 deletions

View file

@ -19,15 +19,10 @@ const build = {
css: './phpBB/styles/prosilver/theme/', css: './phpBB/styles/prosilver/theme/',
}; };
const AUTOPREFIXER_BROWSERS = [
'> 1%',
'last 2 versions'
];
gulp.task('css', () => { gulp.task('css', () => {
const css = gulp const css = gulp
.src(build.css + '*.css') .src(build.css + '*.css')
.pipe(autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(autoprefixer())
.pipe( .pipe(
postcss([ postcss([
sorting(sortOrder) sorting(sortOrder)

View file

@ -8,18 +8,52 @@
}, },
"xo": { "xo": {
"rules": { "rules": {
"quote-props": [ "quotes": [
"error",
"single"
],
"comma-dangle": [
"error",
"always-multiline"
],
"max-params": [
"error",
6
],
"block-spacing": "error",
"array-bracket-spacing": [
"error", "error",
"always" "always"
],
"multiline-comment-style": "off",
"computed-property-spacing": "off",
"space-in-parens": "off",
"capitalized-comments": "off",
"object-curly-spacing": [
"error",
"always"
],
"no-lonely-if": "off"
},
"env": [
"es6",
"browser",
"node",
"jquery"
] ]
}, },
"env": { "browserslist": [
"es6": true, "> 1%",
"browser": true, "not ie 11",
"node": true, "not samsung 10.1",
"jquery": true "not and_uc 12.12",
} "not op_mini all",
}, "edge >= 18",
"ff >= 72",
"chrome >= 79",
"safari >= 13",
"ios >= 12.4"
],
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },