Skip to content

Commit

Permalink
drop Node 12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 16, 2022
1 parent ed69b61 commit 326a903
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [12, 14, 16, 18, latest]
node-version: [14, 16, 18, latest]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"stylelint-config-standard": "^29.0.0"
},
"engines": {
"node": ">=12",
"node": ">=14",
"npm": ">=6.14.8"
},
"title": "Fomantic UI",
Expand Down
15 changes: 6 additions & 9 deletions tasks/config/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ let overrideBrowserslist = hasBrowserslistConfig ? undefined : [
'android 4',
];

// Node 12 does not support ??, so a little polyfill
let nullish = (value, fallback) => (value !== undefined && value !== null ? value : fallback);

module.exports = {

banner: nullish(config.banner, release.banner),
banner: config.banner ?? release.banner,

log: {
created: function (file) {
Expand Down Expand Up @@ -95,11 +92,11 @@ module.exports = {

/* Comment Banners */
header: {
year: nullish(config.header.year, new Date().getFullYear()),
title: nullish(config.header.title, release.title),
version: nullish(config.header.version, release.version),
repository: nullish(config.header.repository, release.repository),
url: nullish(config.header.url, release.url),
year: config.header.year ?? new Date().getFullYear(),
title: config.header.title ?? release.title,
version: config.header.version ?? release.version,
repository: config.header.repository ?? release.repository,
url: config.header.url ?? release.url,
},

plumber: {
Expand Down

0 comments on commit 326a903

Please sign in to comment.