Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Remove node-sprite-generator dependency #20545

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

This dependency is only used by the emoji sprite generator, which is not used that often (maybe it was used only once in a life time) but it adds an annoying error during meteor npm i due to a missing peer dependency, so I'm proposing removing it and adding a comment on the script it is used to install dependency manually, I hope this change brings peace to everyone trying out building rocket.chat from source.

Issue(s)

Steps to test or reproduce

Further comments

@@ -1,5 +1,7 @@
/* eslint-disable */

// before using this script make sure to run: npm i --no-save node-sprite-generator

// node --experimental-modules generateEmojiIndex.mjs
import fs from 'fs';
import nsg from 'node-sprite-generator';
Copy link

Choose a reason for hiding this comment

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

Did you mean to remove this?

Copy link
Member Author

@sampaiodiego sampaiodiego Feb 10, 2021

Choose a reason for hiding this comment

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

I don't want to remove the script itself, but maybe it is a good idea to move it to .scripts folder, since it is not part of the rocket.chat application, it is just a helper script 🤔

@ggazzo ggazzo merged commit 9f803b9 into develop Feb 11, 2021
@ggazzo ggazzo deleted the remove-node-sprite-generator branch February 11, 2021 02:58
@sampaiodiego sampaiodiego mentioned this pull request Feb 28, 2021
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.

3 participants