esbuild.rb 654 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Esbuild < UrlScraper
  3. self.name = 'esbuild'
  4. self.slug = 'esbuild'
  5. self.type = 'simple'
  6. self.links = {
  7. home: 'https://esbuild.github.io/',
  8. code: 'https://github.com/evanw/esbuild'
  9. }
  10. options[:container] = 'main'
  11. options[:root_title] = 'esbuild'
  12. options[:attribution] = <<-HTML
  13. &copy; 2020 Evan Wallace<br>
  14. Licensed under the MIT License.
  15. HTML
  16. self.release = '0.18.17'
  17. self.base_url = 'https://esbuild.github.io/'
  18. html_filters.push 'esbuild/clean_html', 'esbuild/entries'
  19. def get_latest_version(opts)
  20. get_npm_version('esbuild', opts)
  21. end
  22. end
  23. end