Skip to content

Conversation

zoran995
Copy link
Collaborator

@zoran995 zoran995 commented Aug 25, 2025

@zoran995 zoran995 requested a review from na9da August 25, 2025 15:24
Copy link
Contributor

@na9da na9da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zoran995 that looks good. I have requested a couple of changes.

Comment on lines +15 to +19
<link
rel="apple-touch-icon"
sizes="57x57"
href="favicons/apple-icon-57x57.png"
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these formatting changes from prettier?

Copy link
Collaborator Author

@zoran995 zoran995 Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I don't think this file was prettified before

options: {
esModule: false,
symbolId: (svgPath) => {
namespace: (svgPath) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This namespace function is currently returning a new name for each icon in the plugin. It should instead just return the package name, something like: namespace: (svgPath) => packageNames[svgPath] || "terriajs-plugin"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. It was definitely not intended

Comment on lines 15 to 18
var args = minimist(process.argv.slice(2), {
string: ["baseHref"],
default: { baseHref: "/" }
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to be explicit here and pass these in as parameters instead of reading directly from argv.

Copy link
Collaborator Author

@zoran995 zoran995 Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved argv processing to the gulpfile

@zoran995 zoran995 requested a review from na9da September 15, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants