build.sc
changeset 28 5fe465ab9150
parent 27 c4534300acdc
child 29 bf5bf2dd51db
equal deleted inserted replaced
27:c4534300acdc 28:5fe465ab9150
    80 
    80 
    81   override def sources: Sources = T.sources{
    81   override def sources: Sources = T.sources{
    82     super.sources() :+ PathRef(millSourcePath / 'shared / 'src / 'main / 'scala)
    82     super.sources() :+ PathRef(millSourcePath / 'shared / 'src / 'main / 'scala)
    83   }
    83   }
    84 
    84 
    85   // https://github.com/FortAwesome/Font-Awesome/raw/5.6.3/metadata/icons.json
    85   // https://github.com/FortAwesome/Font-Awesome/raw/5.11.2/metadata/icons.json
    86   type IcoDef = (String, Set[String])
    86   type IcoDef = (String, Set[String])
    87   def parseIcons: Target[List[IcoDef]] = T{
    87   def parseIcons: Target[List[IcoDef]] = T{
    88     ujson.read(os.read! pwd / "icons.json").obj.map(e => (e._1, e._2.obj("styles").arr.map(_.str).toSet)).toList
    88     ujson.read(os.read! pwd / "icons.json").obj.map(e => (e._1, e._2.obj("styles").arr.map(_.str).toSet)).toList
    89   }
    89   }
    90 
    90