WIP: Import deno modules for use with import maps
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
lib/tasks/deno.rake
Normal file
14
lib/tasks/deno.rake
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace :deno do
|
||||
desc "Download and prepare a Deno package for importmap"
|
||||
task :prepare, [:package, :version] => :environment do |t, args|
|
||||
unless args[:package] && args[:version]
|
||||
raise "Usage: rake deno:prepare[package-name,version]"
|
||||
end
|
||||
|
||||
# Build the package
|
||||
system "deno run -A scripts/build_deno_package.ts #{args[:package]} #{args[:version]}"
|
||||
|
||||
# Pin the package using importmap
|
||||
# system "bin/importmap pin #{args[:package]} --to vendor/javascript/#{args[:package]}/build.js"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user