Skip to content

Commit

Permalink
Merge pull request #88 from conversionxl/85-icons-gulp-4-upgrade
Browse files Browse the repository at this point in the history
fix: Node 12+ crashes `gulp icons`, requires gulp-^4.0.0
  • Loading branch information
jouni authored Jun 30, 2020
2 parents ef4d43f + 4d5a6db commit 4be49d8
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 8
},
"plugins": [
"html"
],
Expand Down
2 changes: 1 addition & 1 deletion font-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style>
@font-face {
font-family: 'lumo-icons';
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMQAAADYSnCkuaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh55IAsbWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcac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AeQCBgIUghqCP4JRgm+CdoKBAo8CoIKuArwC1ALlgu8eJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==) format('woff');
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2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4wjFOcIoznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down
95 changes: 66 additions & 29 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ var expect = require('gulp-expect-file');
var grepContents = require('gulp-grep-contents');
var clip = require('gulp-clip-empty-files');
var git = require('gulp-git');
var sort = require('gulp-sort');

gulp.task('lint', ['lint:js', 'lint:html', 'lint:css']);

gulp.task('lint:js', function() {
gulp.task('lint:js', async function() {
return gulp.src([
'*.js',
'test/*.js'
])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
.pipe(eslint.failAfterError('fail'))
.on('error', function(err) {
return console.error(err);
});
});

gulp.task('lint:html', function() {
gulp.task('lint:html', async function() {
return gulp.src([
'*.html',
'demo/**/*.html',
Expand All @@ -35,10 +37,13 @@ gulp.task('lint:html', function() {
}))
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError('fail'));
.pipe(eslint.failAfterError('fail'))
.on('error', function(err) {
return console.error(err);
});
});

gulp.task('lint:css', function() {
gulp.task('lint:css', async function() {
return gulp.src([
'*.html',
'demo/**/*.html',
Expand All @@ -52,10 +57,13 @@ gulp.task('lint:css', function() {
reporters: [
{formatter: 'string', console: true}
]
}));
}))
.on('error', function(err) {
return console.error(err);
});
});

gulp.task('version:check', function() {
gulp.task('version:check', async function() {
const expectedVersion = new RegExp('^' + require('./package.json').version + '$');
return gulp.src(['*.html'])
.pipe(htmlExtract({sel: 'script'}))
Expand All @@ -66,7 +74,7 @@ gulp.task('version:check', function() {
.pipe(expect({reportUnexpected: true}, []));
});

gulp.task('version:update', function() {
gulp.task('version:update', async function() {
// Should be run from 'preversion'
// Assumes that the old version is in package.json and the new version in the `npm_package_version` environment variable
const oldversion = require('./package.json').version;
Expand All @@ -92,7 +100,23 @@ var fs = require('fs');
var svgpath = require('svgpath');
var svgmin = require('gulp-svgmin');

gulp.task('icons', function() {
/**
* Normalize file sort order across platforms (OS X vs Linux, maybe others).
*
* Before: `[..., 'eye-disabled', 'eye', ...]`
* After: `[..., 'eye', 'eye-disabled', ...]`
*
* Order of appearance impacts assigned Unicode codepoints, and sometimes build diffs.
*
* @see https://github.com/nfroidure/svgicons2svgfont/pull/82
* @see https://github.com/nfroidure/svgicons2svgfont/blob/master/src/filesorter.js
* @see http://support.ecisolutions.com/doc-ddms/help/reportsmenu/ascii_sort_order_chart.htm
*/
function sortIconFilesNormalized(file1, file2) {
return file1.replace(/-/g, '~').localeCompare(file2.replace(/-/g, '~'), 'en-US');
}

gulp.task('icons', async function() {
var folder = 'icons/svg/';
var glyphs;

Expand Down Expand Up @@ -128,6 +152,7 @@ gulp.task('icons', function() {
<defs>
`;

filenames.sort(sortIconFilesNormalized);
filenames.forEach(function(filename) {
// Skip non-svg files
if (filename.indexOf('.svg') === -1) {
Expand Down Expand Up @@ -165,6 +190,11 @@ gulp.task('icons', function() {

// icon font
gulp.src(folder + '*.svg')
.pipe(sort({
comparator: function(file1, file2) {
return sortIconFilesNormalized(file1.relative, file2.relative);
}
}))
.pipe(iconfont({
fontName: 'lumo-icons',
formats: ['woff'],
Expand All @@ -173,6 +203,7 @@ gulp.task('icons', function() {
descent: 150,
fixedWidth: true,
normalize: true,
timestamp: 1, // Truthy!
}))
.on('glyphs', function(glyphData, options) {
// Store for later use
Expand All @@ -181,41 +212,47 @@ gulp.task('icons', function() {
.pipe(gulp.dest('.'))
.on('finish', function(args) {
// Generate base64 version of the font
exec('base64 lumo-icons.woff', function(err, stdout, stderr) {
// Write the output to font-icons.html
var output = `<!-- NOTICE: Generated with 'gulp icons' -->
const lumoIconsWoff = fs.readFileSync('lumo-icons.woff');

// Write the output to font-icons.html
var output = `<!-- NOTICE: Generated with 'gulp icons' -->
<link rel="import" href="../polymer/lib/elements/custom-style.html">
<link rel="import" href="version.html">
<custom-style>
<style>
@font-face {
font-family: 'lumo-icons';
src: url(data:application/font-woff;charset=utf-8;base64,${stdout.trim()}) format('woff');
src: url(data:application/font-woff;charset=utf-8;base64,${lumoIconsWoff.toString('base64')}) format('woff');
font-weight: normal;
font-style: normal;
}
html {
`;
glyphs.forEach(g => {
var name = g.name.replace(/\s/g, '-').toLowerCase();
var unicode = '\\' + g.unicode[0].charCodeAt(0).toString(16);
output += ` --lumo-icons-${name}: "${unicode}";\n`;
});
output += ` }
glyphs.forEach(g => {
var name = g.name.replace(/\s/g, '-').toLowerCase();
var unicode = '\\' + g.unicode[0].charCodeAt(0).toString(16);
output += ` --lumo-icons-${name}: "${unicode}";\n`;
});
output += ` }
</style>
</custom-style>
`;
fs.writeFile('font-icons.html', output, function(err) {
if (err) {
return console.error(err);
}
});

// Cleanup
fs.unlink('lumo-icons.woff');
fs.writeFile('font-icons.html', output, function(err) {
if (err) {
return console.error(err);
}
});

// Cleanup
fs.unlink('lumo-icons.woff', function(err) {
if (err) {
return console.error(err);
}
});
});
});
});

gulp.task('lint', gulp.parallel('lint:js', gulp.series('lint:html', 'lint:css')));
Loading

0 comments on commit 4be49d8

Please sign in to comment.