Skip to content

Commit

Permalink
Merge pull request phpbb#6577 from marc1706/ticket/17279
Browse files Browse the repository at this point in the history
[ticket/17279] Use only needed iconify icon packages
  • Loading branch information
marc1706 authored Dec 29, 2023
2 parents f9863f9 + ae71009 commit b6951fa
Show file tree
Hide file tree
Showing 23 changed files with 107,188 additions and 69 deletions.
18 changes: 18 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,26 @@ function watch() {
gulp.watch(paths.styles.src, styles);
}

function copyIconifyIcons() {
return gulp.src([
'node_modules/@iconify/json/json/fa.json',
'node_modules/@iconify/json/json/ic.json',
'node_modules/@iconify/json/json/mdi.json',
])
.pipe(gulp.dest('phpBB/assets/iconify'));
}

function copyIconifyJs() {
return gulp.src([
'node_modules/@iconify/iconify/dist/iconify.without-api.min.js',
])
.pipe(rename('iconify.min.js'))
.pipe(gulp.dest('phpBB/assets/iconify'));
}

exports.style = styles;
exports.minify = minify;
exports.watch = watch;
exports.copyIconify = gulp.parallel(copyIconifyJs, copyIconifyIcons);

exports.default = gulp.series(styles, minify, watch);
67 changes: 67 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@
"always"
],
"no-lonely-if": "off",
"unicorn/prefer-module": "off",
"space-before-function-paren": [
"error",
"never"
]
"unicorn/prefer-module": "off"
},
"env": {
"es6": true,
Expand Down Expand Up @@ -103,6 +99,8 @@
},
"homepage": "https://www.phpbb.com",
"devDependencies": {
"@iconify/iconify": "^3.1.1",
"@iconify/json": "^2.2.163",
"autoprefixer": "^10.4.4",
"cssnano": "^5.1.7",
"eslint": "^8.13.0",
Expand Down
Loading

0 comments on commit b6951fa

Please sign in to comment.