Sha256: 5ce7fed3c3ee00ffa4d88ea4d3bdc81ad12509911ab76a158be32f94b966a578
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true require 'thor/rake_compat' require 'mwc/utils/command' require 'mwc/tasks' require 'mwc' module Mwc module Commands # Compile mruby to wasm class Compile < Thor::Group include Utils::Command name 'compile' description 'compile source code to wasm' display_on { Mwc.config.exist? } add_option :format, default: 'html', enum: %w[html js wasm] def compile Tasks.new Rake::Task[parent_options['format']].invoke end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mwc-0.2.0 | lib/mwc/commands/compile.rb |