Sha256: 2206493559c7d55f3d924d70a8ee8cc4365335f69baeaf154f39d6920ffe4acf
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
require 'json' module Bibliothecary module Parsers class Bower include Bibliothecary::Analyser def self.mapping { match_filename("bower.json") => { kind: 'manifest', parser: :parse_manifest } } end def self.parse_manifest(file_contents, options: {}) json = JSON.parse(file_contents) map_dependencies(json, 'dependencies', 'runtime') + map_dependencies(json, 'devDependencies', 'development') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems