Skip to content

Commit 1d0084e

Browse files
authored
Remove importmap:pins rake task in favor of bin/importmap json CLI (#43)
This rake task was added in f42f53e before the `bin/importmap` CLI existed. Its function is identical to the `bin/importmap json` command, though, so let's remove it to consolidate around the `bin/importmap` CLI (which also hosts the `pin` and `unpin` commands).
1 parent cbf36d0 commit 1d0084e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/tasks/importmap_tasks.rake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,4 @@ namespace :importmap do
33
task :install do
44
system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/install.rb", __dir__)}"
55
end
6-
7-
desc "Show the importmap"
8-
task :pins do
9-
require Rails.root.join("config/environment")
10-
puts Rails.application.importmap.to_json(resolver: ActionController::Base.helpers)
11-
end
126
end

0 commit comments

Comments
 (0)