Class: Liquidscript::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/liquidscript/cli.rb

Instance Method Summary collapse

Instance Method Details

#compile(*files) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/liquidscript/cli.rb', line 21

def compile(*files)
  files.each do |file|
    puts "COMPILING: #{file}"
    perform_compiliation(file,
      options[:out] || file.gsub('.liq', '.js'))
  end
end