Sha256: b5538d893eb53fb396949197b42bd4a15bdb68bf97609786bb5f96a6a38b0b8a
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
namespace :assets do desc "Install node components" task :run_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 :run_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 desc "Run npm" task :npm do if fetch(:run_assets) invoke 'assets:run_npm' end end desc "Run grunt" task :grunt do if fetch(:run_assets) invoke 'assets:run_grunt' 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.8 | lib/cap/tasks/assets.rake |