vite 792 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env ruby
  2. # frozen_string_literal: true
  3. #
  4. # This file was generated by Bundler.
  5. #
  6. # The application 'vite' is installed as part of a gem, and
  7. # this file is here to facilitate running it.
  8. #
  9. require "pathname"
  10. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
  11. Pathname.new(__FILE__).realpath)
  12. bundle_binstub = File.expand_path("../bundle", __FILE__)
  13. if File.file?(bundle_binstub)
  14. if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
  15. load(bundle_binstub)
  16. else
  17. abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
  18. Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
  19. end
  20. end
  21. require "rubygems"
  22. require "bundler/setup"
  23. load Gem.bin_path("vite_ruby", "vite")