Sha256: 9664dff13808f011fd1cc7005ceefe387e602e1c7eca5cc5406a887fc7ad6d43
Contents?: true
Size: 501 Bytes
Versions: 14
Compression:
Stored size: 501 Bytes
Contents
require 'json' module Bibliothecary module Parsers class Bower include Bibliothecary::Analyser def self.mapping { /^bower\.json$/ => { kind: 'manifest', parser: :parse_manifest } } end def self.parse_manifest(manifest) json = JSON.parse(manifest) map_dependencies(json, 'dependencies', 'runtime') + map_dependencies(json, 'devDependencies', 'development') end end end end
Version data entries
14 entries across 14 versions & 1 rubygems