Skip to content

Commit

Permalink
deps: upgrade to gulp v5
Browse files Browse the repository at this point in the history
This commit upgrades gulp to version 5.  The latest gulp revision
changes the streaming library which defaulted src() to UTF-8 encoding
for all streams.  This worked seamlessly for everything except fonts,
which became terribly mangled.  The fix is to set encoding:false on
gulp src().

I've also upgrade a few other dependencies and shifted some of the
developmental dependencies from the "dependences" to "devDependencies".
  • Loading branch information
jniles committed Jul 4, 2024
1 parent 3197467 commit c8f9876
Show file tree
Hide file tree
Showing 3 changed files with 1,429 additions and 3,164 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js/client-fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const FONT_FILES = [
* Move all fonts into the fonts/ folder on the client.
*/
function fonts() {
return src(FONT_FILES)
return src(FONT_FILES, { encoding : false })
.pipe(dest(`${CLIENT_FOLDER}/fonts/`));
}

Expand All @@ -31,7 +31,7 @@ function fonts() {
* in the CSS folder (instead of the fonts folder).
*/
function fontsUiGrid() {
return src('node_modules/angular-ui-grid/fonts/*')
return src('node_modules/angular-ui-grid/fonts/*', { encoding : false })
.pipe(dest(`${CLIENT_FOLDER}/css/fonts/`));
}

Expand Down
Loading

0 comments on commit c8f9876

Please sign in to comment.