From 8255efd3f7d88d3f34a558cb995dbcb7cdd9db7b Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Mon, 10 Nov 2025 04:52:13 +0000 Subject: [PATCH] add version number to publish task --- gulp/publish-frontend.mjs | 7 ++++++- package-lock.json | 1 + package.json | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gulp/publish-frontend.mjs b/gulp/publish-frontend.mjs index ee5b9c0..26bd77e 100644 --- a/gulp/publish-frontend.mjs +++ b/gulp/publish-frontend.mjs @@ -14,6 +14,7 @@ import TerserPlugin from 'terser-webpack-plugin'; import { readFile } from 'fs/promises'; import file from 'gulp-file'; import { CloudFrontClient, CreateInvalidationCommand } from '@aws-sdk/client-cloudfront'; +import log from 'fancy-log'; import OVERRIDES from '../src/overrides.mjs'; // get cloudfront @@ -204,11 +205,15 @@ const buildPlaylist = async () => { return file('playlist.json', JSON.stringify(playlist)).pipe(dest('./dist')); }; +const logVersion = async () => { + log(`Version Published: ${version}`); +}; + const buildDist = series(clean, parallel(buildJs, compressJsVendor, copyCss, compressHtml, copyOtherFiles, copyDataFiles, copyImageSources, buildPlaylist)); // upload_images could be in parallel with upload, but _images logs a lot and has little changes // by running upload last the majority of the changes will be at the bottom of the log for easy viewing -const publishFrontend = series(buildDist, uploadImages, upload, invalidate); +const publishFrontend = series(buildDist, uploadImages, upload, invalidate, logVersion); const stageFrontend = series(previewVersion, buildDist, uploadImagesPreview, uploadPreview, invalidatePreview); export default publishFrontend; diff --git a/package-lock.json b/package-lock.json index d00bac6..4147736 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "eslint": "^9.0.0", "eslint-config-airbnb-base": "15.0.0", "eslint-plugin-import": "^2.10.0", + "fancy-log": "^2.0.0", "gulp": "^5.0.0", "gulp-awspublish": "^8.0.0", "gulp-concat": "^2.6.1", diff --git a/package.json b/package.json index 36ef55a..a1232cb 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "eslint": "^9.0.0", "eslint-config-airbnb-base": "15.0.0", "eslint-plugin-import": "^2.10.0", + "fancy-log": "^2.0.0", "gulp": "^5.0.0", "gulp-awspublish": "^8.0.0", "gulp-concat": "^2.6.1", @@ -45,14 +46,14 @@ "gulp-sass": "^6.0.0", "gulp-terser": "^2.0.0", "luxon": "^3.0.0", + "metar-taf-parser": "^9.0.0", "nosleep.js": "^0.12.0", "sass": "^1.54.0", "suncalc": "^1.8.0", "swiped-events": "^1.1.4", "terser-webpack-plugin": "^5.3.6", "webpack": "^5.99.9", - "webpack-stream": "^7.0.0", - "metar-taf-parser": "^9.0.0" + "webpack-stream": "^7.0.0" }, "dependencies": { "dotenv": "^17.0.1",