Class: Rugular::Build

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rugular/tasks/build.rb

Instance Method Summary collapse

Instance Method Details

#compile_coffeescriptObject

TODO: build from the ./.tmp folder



12
13
14
# File 'lib/rugular/tasks/build.rb', line 12

def compile_coffeescript
  puts CoffeeScript.compile File.read("app.coffee")
end

#interpret_sassObject



20
21
22
23
24
25
# File 'lib/rugular/tasks/build.rb', line 20

def interpret_sass
  template = File.load('stylesheets/sassy.sass')
  sass_engine = Sass::Engine.new(template)
  output = sass_engine.render
  puts output
end

#uglify_cssObject



16
17
18
# File 'lib/rugular/tasks/build.rb', line 16

def uglify_css
  puts Uglifier.compile(CoffeeScript.compile File.read("app.coffee"))
end