diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-03-08 10:12:37 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-03-08 10:41:16 -0600 |
commit | 3403bdc5f2aa97331ea1f4766dc08bbcd243f70d (patch) | |
tree | b64f4b39311458011e89736d906be00634dc50b7 /lib/tasks | |
parent | d20a6033858c316e20d5c3574c91f12be66fae17 (diff) | |
download | gitlab-ce-3403bdc5f2aa97331ea1f4766dc08bbcd243f70d.tar.gz |
Fix reference to node_modules in built package
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29192
See https://gitlab.slack.com/archives/frontend/p1488973548024005
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gemojione.rake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tasks/gemojione.rake b/lib/tasks/gemojione.rake index 1f93b5a4dd2..5293f5af12d 100644 --- a/lib/tasks/gemojione.rake +++ b/lib/tasks/gemojione.rake @@ -1,9 +1,12 @@ namespace :gemojione do desc 'Generates Emoji SHA256 digests' - task digests: :environment do + task digests: ['yarn:check', 'environment'] do require 'digest/sha2' require 'json' + # We don't have `node_modules` available in built versions of GitLab + FileUtils.cp_r(Rails.root.join('node_modules', 'emoji-unicode-version', 'emoji-unicode-version-map.json'), File.join(Rails.root, 'fixtures', 'emojis')) + dir = Gemojione.images_path resultant_emoji_map = {} |