DEV: Generate `emoji/data` on demand (#9744)

DEV: Generate emoji/data on demand (#9744)

These emoji rarely change and can be re-generated when we make changes to them.

diff --git a/app/assets/javascripts/pretty-text/addon/emoji/data.js b/app/assets/javascripts/pretty-text/addon/emoji/data.js
new file mode 100644
index 0000000..a6332e9
--- /dev/null
+++ b/app/assets/javascripts/pretty-text/addon/emoji/data.js
@@ -0,0 +1,4554 @@
+// DO NOT EDIT THIS FILE!!!
+// Update it by running `rake javascript:update_constants`
+
+export const emojis = [
+  "grinning",
+  "grimacing",
+  "grin",
+  "joy",
+  "rofl",
+  "smiley",
+  "smile",
+  "sweat_smile",
+  "laughing",
+  "innocent",
+  "wink",
+  "blush",
+  "slightly_smiling_face",
+  "upside_down_face",
+  "relaxed",
+  "yum",
+  "relieved",
+  "heart_eyes",
+  "kissing_heart",
+  "kissing",
+  "kissing_smiling_eyes",
+  "kissing_closed_eyes",
+  "stuck_out_tongue_winking_eye",
+  "stuck_out_tongue_closed_eyes",
+  "stuck_out_tongue",
+  "money_mouth_face",
+  "nerd_face",
+  "sunglasses",
+  "clown_face",
+  "cowboy_hat_face",
+  "hugs",
+  "smirk",
+  "no_mouth",
+  "neutral_face",
+  "expressionless",
+  "unamused",
+  "roll_eyes",
+  "thinking",
+  "lying_face",
+  "flushed",
+  "disappointed",
+  "worried",
+  "angry",
+  "rage",
+  "pensive",
+  "confused",
+  "slightly_frowning_face",
+  "frowning_face",
+  "persevere",
+  "confounded",
+  "tired_face",
+  "weary",
+  "triumph",
+  "open_mouth",
+  "scream",
+  "fearful",
+  "cold_sweat",
+  "hushed",
+  "frowning",
+  "anguished",
+  "cry",
+  "disappointed_relieved",
+  "drooling_face",
+  "sleepy",
+  "sweat",
+  "sob",
+  "dizzy_face",
+  "astonished",
+  "zipper_mouth_face",
+  "nauseated_face",
+  "sneezing_face",
+  "mask",
+  "face_with_thermometer",
+  "face_with_head_bandage",
+  "sleeping",
+  "zzz",
+  "poop",
+  "smiling_imp",
+  "imp",
+  "japanese_ogre",
+  "japanese_goblin",
+  "skull",
+  "ghost",
+  "alien",
+  "robot",
+  "smiley_cat",
+  "smile_cat",
+  "joy_cat",
+  "heart_eyes_cat",
+  "smirk_cat",
+  "kissing_cat",
+  "scream_cat",
+  "crying_cat_face",
+  "pouting_cat",
+  "raised_hands",
+  "clap",
+  "wave",
+  "call_me_hand",
+  "+1",
+  "-1",
+  "facepunch",
+  "fist",
+  "fist_left",
+  "fist_right",
+  "v",
+  "ok_hand",
+  "raised_hand",
+  "raised_back_of_hand",
+  "open_hands",
+  "muscle",
+  "pray",
+  "handshake",
+  "point_up",
+  "point_up_2",
+  "point_down",
+  "point_left",
+  "point_right",
+  "fu",
+  "raised_hand_with_fingers_splayed",
+  "metal",
+  "crossed_fingers",
+  "vulcan_salute",
+  "writing_hand",
+  "selfie",
+  "nail_care",
+  "lips",
+  "tongue",
+  "ear",
+  "nose",
+  "eye",
+  "eyes",
+  "bust_in_silhouette",
+  "busts_in_silhouette",
+  "speaking_head",
+  "baby",
+  "boy",
+  "girl",
+  "man",
+  "woman",
+  "blonde_woman",
+  "blonde_man",
+  "older_man",
+  "older_woman",
+  "man_with_gua_pi_mao",
+  "woman_with_turban",
+  "man_with_turban",
+  "policewoman",
+  "policeman",
+  "construction_worker_woman",
+  "construction_worker_man",
+  "guardswoman",
+  "guardsman",
+  "female_detective",
+  "male_detective",
+  "woman_health_worker",
+  "man_health_worker",
+  "woman_farmer",
+  "man_farmer",
+  "woman_cook",
+  "man_cook",
+  "woman_student",
+  "man_student",
+  "woman_singer",
+  "man_singer",
+  "woman_teacher",
+  "man_teacher",
+  "woman_factory_worker",
+  "man_factory_worker",
+  "woman_technologist",
+  "man_technologist",
+  "woman_office_worker",
+  "man_office_worker",
+  "woman_mechanic",
+  "man_mechanic",
+  "woman_scientist",
+  "man_scientist",
+  "woman_artist",
+  "man_artist",
+  "woman_firefighter",
+  "man_firefighter",
+  "woman_pilot",
+  "man_pilot",
+  "woman_astronaut",
+  "man_astronaut",
+  "woman_judge",
+  "man_judge",
+  "mrs_claus",
+  "santa",
+  "angel",
+  "pregnant_woman",
+  "princess",
+  "prince",
+  "bride_with_veil",
+  "man_in_tuxedo",
+  "running_woman",
+  "running_man",
+  "walking_woman",
+  "walking_man",
+  "dancer",
+  "man_dancing",
+  "dancing_women",
+  "dancing_men",
+  "couple",
+  "two_men_holding_hands",
+  "two_women_holding_hands",
+  "bowing_woman",
+  "bowing_man",
+  "man_facepalming",
+  "woman_facepalming",
+  "woman_shrugging",
+  "man_shrugging",
+  "tipping_hand_woman",
+  "tipping_hand_man",
+  "no_good_woman",
+  "no_good_man",
+  "ok_woman",
+  "ok_man",
+  "raising_hand_woman",
+  "raising_hand_man",
+  "pouting_woman",
+  "pouting_man",
+  "frowning_woman",
+  "frowning_man",
+  "haircut_woman",
+  "haircut_man",
+  "massage_woman",
+  "massage_man",
+  "couple_with_heart_woman_man",
+  "couple_with_heart_woman_woman",
+  "couple_with_heart_man_man",
+  "couplekiss_man_woman",
+  "couplekiss_woman_woman",
+  "couplekiss_man_man",
+  "family_man_woman_boy",
+  "family_man_woman_girl",
+  "family_man_woman_girl_boy",
+  "family_man_woman_boy_boy",
+  "family_man_woman_girl_girl",
+  "family_woman_woman_boy",
+  "family_woman_woman_girl",
+  "family_woman_woman_girl_boy",
+  "family_woman_woman_boy_boy",
+  "family_woman_woman_girl_girl",
+  "family_man_man_boy",
+  "family_man_man_girl",
+  "family_man_man_girl_boy",
+  "family_man_man_boy_boy",
+  "family_man_man_girl_girl",
+  "family_woman_boy",
+  "family_woman_girl",
+  "family_woman_girl_boy",
+  "family_woman_boy_boy",
+  "family_woman_girl_girl",
+  "family_man_boy",
+  "family_man_girl",
+  "family_man_girl_boy",
+  "family_man_boy_boy",
+  "family_man_girl_girl",
+  "womans_clothes",
+  "tshirt",
+  "jeans",
+  "necktie",
+  "dress",
+  "bikini",
+  "kimono",
+  "lipstick",
+  "kiss",
+  "footprints",
+  "high_heel",
+  "sandal",
+  "boot",
+  "mans_shoe",
+  "athletic_shoe",
+  "womans_hat",
+  "tophat",
+  "rescue_worker_helmet",
+  "mortar_board",
+  "crown",
+  "school_satchel",
+  "pouch",
+  "purse",
+  "handbag",
+  "briefcase",
+  "eyeglasses",
+  "dark_sunglasses",
+  "ring",
+  "closed_umbrella",
+  "dog",
+  "cat",
+  "mouse",
+  "hamster",
+  "rabbit",
+  "fox_face",
+  "bear",
+  "panda_face",
+  "koala",
+  "tiger",
+  "lion",
+  "cow",
+  "pig",
+  "pig_nose",
+  "frog",
+  "squid",
+  "octopus",
+  "shrimp",
+  "monkey_face",
+  "gorilla",
+  "see_no_evil",
+  "hear_no_evil",
+  "speak_no_evil",
+  "monkey",
+  "chicken",
+  "penguin",
+  "bird",
+  "baby_chick",
+  "hatching_chick",
+  "hatched_chick",
+  "duck",
+  "eagle",
+  "owl",
+  "bat",
+  "wolf",
+  "boar",
+  "horse",
+  "unicorn",
+  "honeybee",
+  "bug",
+  "butterfly",
+  "snail",
+  "beetle",
+  "ant",
+  "spider",
+  "scorpion",
+  "crab",
+  "snake",
+  "lizard",
+  "turtle",
+  "tropical_fish",
+  "fish",
+  "blowfish",
+  "dolphin",
+  "shark",
+  "whale",
+  "whale2",
+  "crocodile",
+  "leopard",
+  "tiger2",
+  "water_buffalo",
+  "ox",
+  "cow2",
+  "deer",
+  "dromedary_camel",
+  "camel",
+  "elephant",
+  "rhinoceros",
+  "goat",
+  "ram",
+  "sheep",
+  "racehorse",
+  "pig2",
+  "rat",
+  "mouse2",
+  "rooster",
+  "turkey",
+  "dove",
+  "dog2",
+  "poodle",
+  "cat2",
+  "rabbit2",
+  "chipmunk",
+  "paw_prints",
+  "dragon",
+  "dragon_face",
+  "cactus",
+  "christmas_tree",
+  "evergreen_tree",
+  "deciduous_tree",
+  "palm_tree",
+  "seedling",
+  "herb",
+  "shamrock",
+  "four_leaf_clover",
+  "bamboo",
+  "tanabata_tree",
+  "leaves",
+  "fallen_leaf",
+  "maple_leaf",
+  "ear_of_rice",
+  "hibiscus",
+  "sunflower",
+  "rose",
+  "wilted_flower",
+  "tulip",
+  "blossom",
+  "cherry_blossom",
+  "bouquet",
+  "mushroom",
+  "chestnut",
+  "jack_o_lantern",
+  "shell",
+  "spider_web",
+  "earth_americas",
+  "earth_africa",
+  "earth_asia",
+  "full_moon",
+  "waning_gibbous_moon",
+  "last_quarter_moon",
+  "waning_crescent_moon",
+  "new_moon",
+  "waxing_crescent_moon",
+  "first_quarter_moon",
+  "waxing_gibbous_moon",
+  "new_moon_with_face",
+  "full_moon_with_face",
+  "first_quarter_moon_with_face",
+  "last_quarter_moon_with_face",
+  "sun_with_face",
+  "crescent_moon",
+  "star",
+  "star2",
+  "dizzy",
+  "sparkles",
+  "comet",
+  "sunny",
+  "sun_behind_small_cloud",
+  "partly_sunny",
+  "sun_behind_large_cloud",
+  "sun_behind_rain_cloud",
+  "cloud",
+  "cloud_with_rain",

[... diff too long, it was truncated ...]

GitHub sha: d2b16a76

This commit appears in #9744 which was merged by eviltrout.