Sha256: dd0493e608b00c0a7e89fe42f47730d1b3dad6fcba1b7ab92a8496ef8a5afcfe
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
require 'json' module Bibliothecary module Parsers class Bower include Bibliothecary::Analyser def self.mapping { /(^bower\.json$|.*\/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bibliothecary-6.3.2 | lib/bibliothecary/parsers/bower.rb |
bibliothecary-6.3.1 | lib/bibliothecary/parsers/bower.rb |
bibliothecary-6.3.0 | lib/bibliothecary/parsers/bower.rb |