Sha256: 3aa72e271273d6ded21271b71c3239b7dd0a87e692b592d3b2d3865c421bb196

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Hanamismith
  module Builders
    # Builds project skeleton Progressive Web Application (PWA) manifest.
    class PWA < Rubysmith::Builders::Abstract
      using Refinements::Struct

      def call
        path = "%project_name%/app/assets/pwa/manifest.webmanifest.erb"
        builder.call(configuration.merge(template_path: path)).render
        configuration
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanamismith-0.38.0 lib/hanamismith/builders/pwa.rb
hanamismith-0.37.0 lib/hanamismith/builders/pwa.rb