-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstisla.rb
20 lines (15 loc) · 1.01 KB
/
stisla.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'fileutils'
FileUtils.rm_r Dir['assets/css/*', 'assets/fonts/*']
css = 'stisla/assets/css/.'
FileUtils.cp_r css, 'assets/css' if File.directory? css
fonts = 'stisla/assets/fonts/.'
FileUtils.cp_r fonts, 'assets/fonts' if File.exist? fonts
bootstrap = 'stisla/node_modules/bootstrap/dist/css/bootstrap.min.css'
FileUtils.mkdir_p('assets/node_modules/bootstrap/dist/css/')
FileUtils.cp(bootstrap, 'assets/node_modules/bootstrap/dist/css/bootstrap.min.css') if File.exist? bootstrap
fontawesome = 'stisla/node_modules/@fortawesome/fontawesome-free/css/all.min.css'
FileUtils.mkdir_p('assets/node_modules/@fortawesome/fontawesome-free/css/')
FileUtils.cp(fontawesome, 'assets/node_modules/@fortawesome/fontawesome-free/css/all.min.css') if File.exist? fontawesome
webfonts = 'stisla/node_modules/@fortawesome/fontawesome-free/webfonts/.'
FileUtils.mkdir_p('assets/node_modules/@fortawesome/fontawesome-free/webfonts/')
FileUtils.cp_r webfonts, 'assets/node_modules/@fortawesome/fontawesome-free/webfonts' if File.directory? css