build.min
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
;;; hastystyles.fa.svg "Merging FA sprites..." notice! "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display: none;\"> </svg>" :svg-container svg-container from-xml :svg "./src/icons/solid.svg" fread from-xml "symbol" xqueryall :solid-symbols "./src/icons/brands.svg" fread from-xml "symbol" xqueryall :brands-symbols solid-symbols size :n-solid brands-symbols size :n-brands "Solid icons: $# - Brand icons: $#" (n-solid n-brands) =% notice! solid-symbols brands-symbols concat :fa-symbols fa-symbols size :n-symbols "Total icons: $#" (n-symbols) =% notice! svg fa-symbols %children @svg svg to-xml "./dist/hastystyles.fa.svg" fwrite "Generated: hastystyles.fa.svg" notice! ;;; hastystyles.fa.css "Generating CSS rules..." notice! ".fa-$1 { background: url('#fa-$1') no-repeat }" :rule fa-symbols ( :icon *icon/attributes/id :id rule (id) =% ) map "\n" join "./dist/hastystyles.fa.css" fwrite "Generated: hastystyles.fa.css" notice! ;;; hastystyles.css !"lessc ./src/styles/hastystyles.less ./dist/hastystyles.css" "Generated: hastystyles.css" notice! |