Skip to content

Commit

Permalink
- minor generator fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Dec 17, 2024
1 parent b11c2ba commit f185a2e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

- Minor generators updates.

## 0.2.0

- Add pglite support.
Expand Down
1 change: 1 addition & 0 deletions lib/generators/wasmify/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def add_tzinfo_data_to_gemfile
solid_cache
jsbundling-rails
cssbundling-rails
tailwindcss-rails
thruster
kamal
byebug
Expand Down
16 changes: 16 additions & 0 deletions lib/generators/wasmify/pwa/pwa_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ def copy_files
directory "pwa", "pwa"
end

def configure_wasm_dist
prepend_to_file "config/wasmify.yml", <<~EOF
output_dir: pwa
EOF
end

def install_npm_deps
begin
in_root do
run "(cd pwa/ && yarn install)"
end
rescue
say "Please, make sure to run `yarn install` within the pwa/ folder", :red
end
end

private

def wasmify_rails_version = Wasmify::Rails::VERSION
Expand Down
2 changes: 1 addition & 1 deletion lib/wasmify/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Wasmify
module Rails # :nodoc:
VERSION = "0.2.0"
VERSION = "0.2.1"
end
end

0 comments on commit f185a2e

Please sign in to comment.