Sha256: b82fd69f2260d67663c4bc829939c596aa05f6650662fc18749778e0a50826b5
Contents?: true
Size: 702 Bytes
Versions: 4
Compression:
Stored size: 702 Bytes
Contents
require 'beryl' require 'bowser' require 'opal' require 'rake/testtask' desc 'Build the app to build/app.js' task :compile do Opal.append_path 'app' Opal.append_path 'lib' Opal.use_gem 'beryl' Dir.mkdir('build') unless File.exist?('build') File.binwrite 'build/app.js', Opal::Builder.build('frontend').to_s File.binwrite 'build/style.css', File.read("#{File.dirname(__FILE__)}/style.css") end desc 'Build and run the app' task :run do Rake::Task['compile'].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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
beryl-0.3.1 | lib/beryl/Rakefile |
beryl-0.3.0 | lib/beryl/Rakefile |
beryl-0.2.5 | lib/beryl/Rakefile |
beryl-0.2.4 | lib/beryl/Rakefile |