build.sc
changeset 46 cd7815894e22
parent 44 ad85035e4d90
child 47 d7b69a5dcd37
equal deleted inserted replaced
45:243e20b0390c 46:cd7815894e22
    95 
    95 
    96   override def sources: Sources = T.sources{
    96   override def sources: Sources = T.sources{
    97     super.sources() :+ PathRef(millSourcePath / 'shared / 'src / 'main / 'scala)
    97     super.sources() :+ PathRef(millSourcePath / 'shared / 'src / 'main / 'scala)
    98   }
    98   }
    99 
    99 
   100   // https://github.com/FortAwesome/Font-Awesome/raw/5.15.1/metadata/icons.json
   100   // https://github.com/FortAwesome/Font-Awesome/raw/5.15.3/metadata/icons.json
   101   type IcoDef = (String, Set[String])
   101   type IcoDef = (String, Set[String])
   102   def parseIcons: Target[List[IcoDef]] = T{
   102   def parseIcons: Target[List[IcoDef]] = T{
   103     ujson.read(os.read! pwd / "icons.json").obj.map(e => (e._1, e._2.obj("styles").arr.map(_.str).toSet)).toList
   103     ujson.read(os.read! pwd / "icons.json").obj.map(e => (e._1, e._2.obj("styles").arr.map(_.str).toSet)).toList
   104   }
   104   }
   105 
   105