Browse files

Update rake tasks

  • Loading branch information...
1 parent 1b92394 commit 95b09d7f50e5fa065f9168df6e5869afd8a4585a @kossnocorp committed Nov 28, 2012
Showing with 10 additions and 4 deletions.
  1. +10 −4 Rakefile
View
14 Rakefile
@@ -4,15 +4,21 @@ require 'talks'
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'jquery-turbolinks/version'
-
-namespace :gem do
- task :build do
+
+namespace :release do
+ task :build_gem do
system 'gem build jquery-turbolinks.gemspec'
end
- task release: :build do
+ task gem: :build_gem do
system "gem push jquery-turbolinks-#{JqueryTurbolinks::VERSION}.gem"
end
+
+ task :npm do
+ system 'npm publish'
+ end
+
+ task all: [:gem, :npm]
end
namespace :js do

0 comments on commit 95b09d7

Please sign in to comment.