Sha256: e1c6dd50a0fde664bad34bd26e5b64be20a777f6d0ff3465fdb364934547bda1

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

namespace :assets do

  desc "Install node components"
  task :npm do
    on roles(:app) do
      within release_path do
        if test("[ -e #{release_path}/package.json ]")
          execute :npm, :install, "--quiet"
        end
      end
    end
  end

  desc "Run the grunt command"
  task :grunt do
    on roles(:app) do
      within release_path do
        if test("[ -e #{release_path}/Gruntfile.js ]")
          execute fetch(:grunt_cmd)
        end
      end
    end
  end

  # probs wont work
  desc "Run the bower command"
  task :bower do
    on roles(:app) do
      within release_path do
        execute :bower, "install"
      end
    end
  end
  
  before 'deploy:publishing', 'assets:npm'
  before 'deploy:publishing', 'assets:grunt'

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cap-laravel-0.0.5 lib/cap/tasks/assets.rake