mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/16775] Only run valid eslint runs and fix linting errors
PHPBB3-16775
This commit is contained in:
parent
47ada71b3a
commit
2c46f0dc13
10
.github/check-js.sh
vendored
10
.github/check-js.sh
vendored
@ -14,8 +14,8 @@ set +x
|
||||
sudo npm install -g > /dev/null
|
||||
npm ci > /dev/null
|
||||
set -x
|
||||
node_modules/xo/cli.js "phpBB/adm/style/*.js"
|
||||
node_modules/xo/cli.js "phpBB/assets/javascript/*.js"
|
||||
node_modules/xo/cli.js "phpBB/style/all/js/*.js"
|
||||
node_modules/xo/cli.js "phpBB/style/prosilver/template/*.js"
|
||||
node_modules/xo/cli.js "gulpfile.js"
|
||||
# node_modules/eslint/bin/eslint.js "phpBB/adm/style/*.js" # Currently disabled as no file is linted
|
||||
node_modules/eslint/bin/eslint.js "phpBB/assets/javascript/*.js"
|
||||
# node_modules/eslint/bin/eslint.js "phpBB/style/all/js/*.js" # Currently disabled as no file is linted
|
||||
# node_modules/eslint/bin/eslint.js "phpBB/style/prosilver/template/*.js" # Currently disabled as no file is linted
|
||||
node_modules/eslint/bin/eslint.js "gulpfile.js"
|
||||
|
@ -23,7 +23,7 @@ function styles() {
|
||||
postcss([
|
||||
autoprefixer(),
|
||||
sorting(sortOrder),
|
||||
]),
|
||||
])
|
||||
)
|
||||
.pipe(gulp.dest(paths.styles.css));
|
||||
}
|
||||
@ -48,7 +48,7 @@ function minify() {
|
||||
.pipe(
|
||||
postcss([
|
||||
cssnano(),
|
||||
]),
|
||||
])
|
||||
)
|
||||
.pipe(rename({
|
||||
suffix: '.min',
|
||||
|
Loading…
x
Reference in New Issue
Block a user