Sha256: 0df500e456b8aebb4f766ef3111b657362f43dc3f0063449c457d4c184fa5295
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require 'opal' require 'rake/testtask' require 'bowser' require 'bundler/gem_tasks' desc 'Build the app to build/app.js' task :build do Opal.append_path 'app' Opal.append_path 'lib' Dir.mkdir('build') unless File.exist?('build') File.binwrite 'build/app.js', Opal::Builder.build('frontend_app').to_s end desc 'Build and run the app' task :run do Rake::Task['build'].invoke sh 'bundle exec rackup --port 3000 --host 0.0.0.0' end desc 'Test the app' Rake::TestTask.new(:test) do |t| t.libs << 'test' t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end task :default => :test
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beryl-0.1.0 | Rakefile |