This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :hulk do | |
desc 'Updates the host applications\' packs (new: entry_points) published from engines' | |
task :publish_engine_packs do | |
detected_missing_entry_points = 0 | |
puts "\n" | |
Dir[Rails.root.join('engines/*/app/javascript/host_entrypoints/*.js')].each do |engine_entry_point| | |
relative_entrypoint_path = engine_entry_point.sub("#{Rails.root}/", '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# corresponding to the sample theme with the master view_template "master_page" | |
# this template iterates the sub_pages / descendents of the master_page and renders | |
# them concatenated: | |
<% current_page.children.sorted.active.live.each do |page| %> | |
<%= render_spina_part(page) %> | |
<% end %> |