Skip to content

Commit

Permalink
fix: Node 12+ crashes gulp icons, requires gulp-^4.0.0
Browse files Browse the repository at this point in the history
Fix vaadin#85

* gulp-^4.0.0 is provided by @vaadin/vaadin-component-dev-dependencies-^2.0.0

* .eslintrc.json: `async` functions require `parserOptions.ecmaVersion = 8`

* Gulpfile: Gulp 4 task architecture uses `gulp.series()` and
  `.parallel()` async strategy

  We use `.parallel()` only for lint tasks operating on distinct file sets

* Gulpfile: add simple `.on('error')` report callbacks to task pipelines
  missing such, avoid `events.js unhandled 'error' event` warnings if
  any pipeline reports errors

* Gulpfile: on Linux, `base64` requires explicit `-w 0` to disable line wrapping

@todo Not sure why `font-icons.html` output produces a reverse of
      unicode characters for `--lumo-icons-eye` vs `--lumo-icons-eye-disabled`

      Is the original commit faulty perhaps?

@todo Test for vaadin#66
  • Loading branch information
lkraav committed Jun 15, 2020
1 parent ef4d43f commit a305d12
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 17 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
6 changes: 3 additions & 3 deletions 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,d09GRgABAAAAABEgAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMQAAADYSnCkuaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh55IAsbWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuU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J9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==) format('woff');
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQgAAAFZAIUL6Y21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2gAABd4h9To2WhlYWQAAA3oAAAAMAAAADYYzlIAaGhlYQAADhgAAAAgAAAAJAbp/DFobXR4AAAOOAAAAA4AAACsA/AAAGxvY2EAAA5IAAAAWAAAAFh59IAsbWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAel7UsrBeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGQQZ5zAwMrAwMDPtAdI9kBoxgcMhoxMDAxMDKzMDFhBQJprCoPDK8ZXWsxB/7MYopiDGKYBhRlBcgCMrAqWAAB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh7bFvVGT/fie3r6/uwb3zvtR3Hb+c6j8ZR/WyS1mniFNJH0l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1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY/ZcoMwDEW5CVBCSLrv+76kfJRjq8DEsRmBm8nflyXp9KF60Jw7PtLI3sDrK/b+rxkGGMJHgBA7iDBCjDESTDDFLvawjwMc4gjHOMEpznCOC1ziCte4wS3ucI8HPOIJz3jBK97wjg/M8OklQheZSSWZmjjug6avetwjF1lex8JkmlJlV2aDvdFhZ0Q9uzIWzHa1UTvs1Q43aseuHM0FpzIXXPtz0jqSQpNRgkcyJ7lYCl4kDX2zNd2639AunGxDf982uTKQ2srFUNoskGyrKmpHtRUqUmzLNvikijqg5ghOaN38qqjEXJMaNsFfknHBsjCuSiwrYlKpLqo6KHNrqO219Ust1k1zld8825CpXR9WJFjmvjPKTp35Oxy6sjV8VxF73g+7JYj0AA==) format('woff');
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -38,8 +38,8 @@
--lumo-icons-dropdown: "\ea18";
--lumo-icons-edit: "\ea19";
--lumo-icons-error: "\ea1a";
--lumo-icons-eye: "\ea1b";
--lumo-icons-eye-disabled: "\ea1c";
--lumo-icons-eye-disabled: "\ea1b";
--lumo-icons-eye: "\ea1c";
--lumo-icons-menu: "\ea1d";
--lumo-icons-minus: "\ea1e";
--lumo-icons-ordered-list: "\ea1f";
Expand Down
39 changes: 26 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ var grepContents = require('gulp-grep-contents');
var clip = require('gulp-clip-empty-files');
var git = require('gulp-git');

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 +36,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 +56,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 +73,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 +99,7 @@ var fs = require('fs');
var svgpath = require('svgpath');
var svgmin = require('gulp-svgmin');

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

Expand Down Expand Up @@ -181,7 +188,7 @@ 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) {
exec('base64 -w 0 lumo-icons.woff', function(err, stdout, stderr) {
// Write the output to font-icons.html
var output = `<!-- NOTICE: Generated with 'gulp icons' -->
<link rel="import" href="../polymer/lib/elements/custom-style.html">
Expand Down Expand Up @@ -214,8 +221,14 @@ gulp.task('icons', function() {
});

// Cleanup
fs.unlink('lumo-icons.woff');
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')));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"preversion": "gulp version:update"
},
"devDependencies": {
"@vaadin/vaadin-component-dev-dependencies": "^1.0.0",
"@vaadin/vaadin-component-dev-dependencies": "^2.0.0",
"gulp-iconfont": "^9.1.0",
"gulp-svgmin": "^1.2.4",
"svgicons2svgfont": "^9.0.2"
Expand Down

0 comments on commit a305d12

Please sign in to comment.