Sha256: cc0d0cfacdd84287c3d5c51fd749ede497d25ac90b44929c86b910e5869afe02
Contents?: true
Size: 794 Bytes
Versions: 5
Compression:
Stored size: 794 Bytes
Contents
require 'hyperloop-config' require 'rubygems' require 'opal-rails' require 'hyper-operation' require 'hyper-store' require 'opal-browser' require 'opal-jquery' require 'uglifier' require 'react-rails' desc 'Build Hyperloop and Opal Compiler' task :build do Opal.append_path 'lib' puts "About to build hyper-console-client.js" File.binwrite 'lib/hyper-console-client.js', Opal::Builder.build('hyperloop/console/hyper-console-client-manifest').to_s puts "done" end desc 'Minify using uglifier gem' task :minify do puts "About to build hyper-console-client.min.js" js_file = "lib/hyper-console-client.js" js_min_file = "lib/hyper-console-client.min.js" File.open(js_min_file, "w").write(Uglifier.new.compile(File.read(js_file))) puts "done" end task default: [:build, :minify]
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hyper-console-0.1.4 | Rakefile |
hyper-console-0.1.3 | Rakefile |
hyper-console-0.1.2 | Rakefile |
hyper-console-0.1.1 | Rakefile |
hyper-console-0.1.0 | Rakefile |