Class: RakeNPM::TaskSets::Scripts

Inherits:
RakeFactory::TaskSet
  • Object
show all
Defined in:
lib/rake_npm/task_sets/scripts.rb

Instance Method Summary collapse

Instance Method Details

#define_on(application) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/rake_npm/task_sets/scripts.rb', line 18

def define_on(application)
  around_define(application) do
    scripts.each_key do |script|
      define_run_script_on(
        application, { name: script, script: }
      )
    end
  end

  self
end