Sha256: eb8e8d4df60991e46a37ec12712176139aa38fc58b1e71aa72527ea716402a71

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

require 'wax_tasks'

namespace :wax do
  desc 'write a simple package.json for monitoring js dependencies'
  task :jspackage do
    task_runner = WaxTasks::TaskRunner.new
    package = task_runner.js_package
    unless package.empty?
      path = WaxTasks::Utils.make_path(task_runner.site[:source_dir],
                                       'package.json')
      File.open(path, 'w') { |f| f.write(package.to_json) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wax_tasks-0.3.2 lib/tasks/jspackage.rake
wax_tasks-0.3.1 lib/tasks/jspackage.rake
wax_tasks-0.3.0 lib/tasks/jspackage.rake