Class: Rugular::Build
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Rugular::Build
- Includes:
- Thor::Actions
- Defined in:
- lib/rugular/tasks/build.rb
Instance Method Summary collapse
-
#compile_coffeescript ⇒ Object
TODO: build from the ./.tmp folder.
- #interpret_sass ⇒ Object
- #uglify_css ⇒ Object
Instance Method Details
#compile_coffeescript ⇒ Object
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_sass ⇒ Object
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_css ⇒ Object
16 17 18 |
# File 'lib/rugular/tasks/build.rb', line 16 def uglify_css puts Uglifier.compile(CoffeeScript.compile File.read("app.coffee")) end |