Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/frontend.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb
index 366d04e8..ed4a5346 100644
--- a/commands/frontend.rb
+++ b/commands/frontend.rb
@@ -25,4 +25,14 @@ run do |opts, args, cmd|
ERROR
end
+
+ puts 'Create icons.svg ...'
+ root = File.expand_path('../', __dir__)
+ path = 'node_modules/@gitlab/svgs/dist/icons.svg'
+
+ if File.write('public/assets/images/icons.svg', File.read("#{root}/#{path}"))
+ puts 'Done!'
+ else
+ puts 'Failed to create icons.svg!'
+ end
end