Sha256: e55f40ba42467aaabdec58b277b0b5c0308410b598489a526cb902c43b014564
Contents?: true
Size: 586 Bytes
Versions: 5
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module Epuber module ThirdParty class Bower class << self JS_COMPONENTS = { jquery: 'jquery/dist/', cookies: 'cookies-js/dist/', uri: 'uri.js/src/', spin: 'spin.js/', keymaster: 'keymaster/', } def path_to_js(component) path = JS_COMPONENTS[component] raise "Not found component #{component}" if path.nil? File.expand_path("bower/bower_components/#{path}", File.dirname(__FILE__)) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems