Class: Mwc::Commands::Compile

Inherits:
Thor::Group
  • Object
show all
Includes:
Utils::Command, Thor::Actions
Defined in:
lib/mwc/commands/compile.rb

Overview

Compile mruby to wasm

Instance Method Summary collapse

Methods included from Utils::Command

included

Instance Method Details

#compileObject



21
22
23
24
25
26
27
28
29
# File 'lib/mwc/commands/compile.rb', line 21

def compile
  Mwc.use(parent_options['env']) do
    # TODO: Allow change output directory
    empty_directory('dist')

    Tasks.new
    Rake::Task[parent_options['format']].invoke
  end
end