Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ruby '~>2.7.7'
source 'https://rubygems.org'

gem 'roda', '2.14.0'
gem 'roda-sprocket_assets', '0.0.9'
gem 'thin', '1.6.4'
gem 'thin'
gem 'rack-unreloader', '1.5.0'
gem 'rack-livereload'
gem 'rspec'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server:
bundle exec rake webpack:run& bundle exec thin start --port=3001
bundle exec rake opal-connect:webpack:run & bundle exec thin start --port=3011
run:
bundle exec thin start --port=3001
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require './app/config/boot'
require 'opal-connect'
require 'opal/connect/rake_task'

Opal::Connect::RakeTask.new('webpack')
Opal::Connect::RakeTask.new

require 'opal/rspec/rake_task'
Opal::RSpec::RakeTask.new('opal:rspec') do |s|
Expand Down
Binary file added gemfiles/opal-connect-0.0.23.gem
Binary file not shown.
10 changes: 5 additions & 5 deletions lib/opal/connect/rake_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ module Connect
class RakeTask
include Rake::DSL if defined? Rake::DSL

def initialize(name = 'webpack', opts = {})
def initialize(name = 'opal-connect:webpack', opts = {})
namespace name do
desc "Start webpack"
desc "Runs package.json script watchOpalConnectWebpack transpiling ruby content to js and watch changes"
task :run do
envs = initialize_connect
exec(envs, 'webpack --progress --watch')
exec(envs, 'npm run watchOpalConnectWebpack')
end

desc "Build webpack"
desc "Runs package.json script buildOpalConnectWebpack transpiling ruby script to js"
task :build do
envs = initialize_connect
exec(envs, 'webpack --progress')
exec(envs, 'npm run buildOpalConnectWebpack')
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/opal/connect/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Opal
module Connect
VERSION = "0.0.22"
VERSION = "0.0.23"
end
end