Skip to content

Commit 47873d4

Browse files
committed
Add ujs:publish task
1 parent 5428180 commit 47873d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ namespace :ujs do
6969
full_destination_path = File.expand_path("../lib/assets/javascripts/react_ujs.js", __FILE__)
7070
FileUtils.cp(full_webpack_path, full_destination_path)
7171
end
72+
73+
desc "Publish the package in ./react_ujs/ to npm as `react_ujs`"
74+
task :publish do
75+
Dir.chdir("react_ujs") do
76+
`npm publish`
77+
end
78+
end
7279
end
7380

7481
require 'appraisal'

0 commit comments

Comments
 (0)