Explorar el Código

Create public folder if it doesn't exist already

master
Dylan Baker hace 3 años
padre
commit
b18667d5ca
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      Rakefile

+ 5
- 0
Rakefile Ver fichero

@@ -17,6 +17,11 @@ end
17 17
 task 'build' do
18 18
   require 'sassc'
19 19
 
20
+  unless Dir.exist?('./web/public')
21
+    puts 'Creating web/public/'
22
+    Dir.mkdir('./web/public')
23
+  end
24
+
20 25
   scss = File.read('./web/assets/style.scss')
21 26
   css = SassC::Engine.new(scss, style: :compressed).render
22 27
   puts 'Writing web/public/style.css'

Loading…
Cancelar
Guardar