@blueprintjs/icons 4.0.0-beta.6 → 4.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/dist/icons.bundle.js +1 -1
  2. package/icons.json +1127 -539
  3. package/lib/cjs/generated/16px/blueprint-icons-16.d.ts +9 -2
  4. package/lib/cjs/generated/16px/blueprint-icons-16.js +553 -539
  5. package/lib/cjs/generated/16px/blueprint-icons-16.js.map +1 -1
  6. package/lib/cjs/generated/16px/paths/add-clip.d.ts +2 -0
  7. package/lib/cjs/generated/16px/paths/add-clip.js +4 -0
  8. package/lib/cjs/generated/16px/paths/add-clip.js.map +1 -0
  9. package/lib/cjs/generated/16px/paths/cargo-ship.d.ts +2 -0
  10. package/lib/cjs/generated/16px/paths/cargo-ship.js +4 -0
  11. package/lib/cjs/generated/16px/paths/cargo-ship.js.map +1 -0
  12. package/lib/cjs/generated/16px/paths/clip.d.ts +2 -0
  13. package/lib/cjs/generated/16px/paths/clip.js +4 -0
  14. package/lib/cjs/generated/16px/paths/clip.js.map +1 -0
  15. package/lib/cjs/generated/16px/paths/index.d.ts +7 -0
  16. package/lib/cjs/generated/16px/paths/index.js +25 -11
  17. package/lib/cjs/generated/16px/paths/index.js.map +1 -1
  18. package/lib/cjs/generated/16px/paths/rectangle.d.ts +2 -0
  19. package/lib/cjs/generated/16px/paths/rectangle.js +4 -0
  20. package/lib/cjs/generated/16px/paths/rectangle.js.map +1 -0
  21. package/lib/cjs/generated/16px/paths/ship.d.ts +2 -0
  22. package/lib/cjs/generated/16px/paths/ship.js +4 -0
  23. package/lib/cjs/generated/16px/paths/ship.js.map +1 -0
  24. package/lib/cjs/generated/16px/paths/symbol-rectangle.d.ts +2 -0
  25. package/lib/cjs/generated/16px/paths/symbol-rectangle.js +4 -0
  26. package/lib/cjs/generated/16px/paths/symbol-rectangle.js.map +1 -0
  27. package/lib/cjs/generated/16px/paths/target.d.ts +2 -0
  28. package/lib/cjs/generated/16px/paths/target.js +4 -0
  29. package/lib/cjs/generated/16px/paths/target.js.map +1 -0
  30. package/lib/cjs/generated/20px/blueprint-icons-20.d.ts +9 -2
  31. package/lib/cjs/generated/20px/blueprint-icons-20.js +553 -539
  32. package/lib/cjs/generated/20px/blueprint-icons-20.js.map +1 -1
  33. package/lib/cjs/generated/20px/paths/add-clip.d.ts +2 -0
  34. package/lib/cjs/generated/20px/paths/add-clip.js +4 -0
  35. package/lib/cjs/generated/20px/paths/add-clip.js.map +1 -0
  36. package/lib/cjs/generated/20px/paths/cargo-ship.d.ts +2 -0
  37. package/lib/cjs/generated/20px/paths/cargo-ship.js +4 -0
  38. package/lib/cjs/generated/20px/paths/cargo-ship.js.map +1 -0
  39. package/lib/cjs/generated/20px/paths/clip.d.ts +2 -0
  40. package/lib/cjs/generated/20px/paths/clip.js +4 -0
  41. package/lib/cjs/generated/20px/paths/clip.js.map +1 -0
  42. package/lib/cjs/generated/20px/paths/index.d.ts +7 -0
  43. package/lib/cjs/generated/20px/paths/index.js +25 -11
  44. package/lib/cjs/generated/20px/paths/index.js.map +1 -1
  45. package/lib/cjs/generated/20px/paths/rectangle.d.ts +2 -0
  46. package/lib/cjs/generated/20px/paths/rectangle.js +4 -0
  47. package/lib/cjs/generated/20px/paths/rectangle.js.map +1 -0
  48. package/lib/cjs/generated/20px/paths/ship.d.ts +2 -0
  49. package/lib/cjs/generated/20px/paths/ship.js +4 -0
  50. package/lib/cjs/generated/20px/paths/ship.js.map +1 -0
  51. package/lib/cjs/generated/20px/paths/symbol-rectangle.d.ts +2 -0
  52. package/lib/cjs/generated/20px/paths/symbol-rectangle.js +4 -0
  53. package/lib/cjs/generated/20px/paths/symbol-rectangle.js.map +1 -0
  54. package/lib/cjs/generated/20px/paths/target.d.ts +2 -0
  55. package/lib/cjs/generated/20px/paths/target.js +4 -0
  56. package/lib/cjs/generated/20px/paths/target.js.map +1 -0
  57. package/lib/cjs/iconCodepoints.d.ts +7 -0
  58. package/lib/cjs/iconNames.d.ts +14 -0
  59. package/lib/cjs/iconSvgPaths.d.ts +3 -2
  60. package/lib/cjs/iconSvgPaths.js +5 -4
  61. package/lib/cjs/iconSvgPaths.js.map +1 -1
  62. package/lib/css/blueprint-icons-16.eot +0 -0
  63. package/lib/css/blueprint-icons-16.ttf +0 -0
  64. package/lib/css/blueprint-icons-16.woff +0 -0
  65. package/lib/css/blueprint-icons-16.woff2 +0 -0
  66. package/lib/css/blueprint-icons-20.eot +0 -0
  67. package/lib/css/blueprint-icons-20.ttf +0 -0
  68. package/lib/css/blueprint-icons-20.woff +0 -0
  69. package/lib/css/blueprint-icons-20.woff2 +0 -0
  70. package/lib/css/blueprint-icons.css +2 -2
  71. package/lib/css/blueprint-icons.css.map +1 -1
  72. package/lib/esm/generated/16px/blueprint-icons-16.d.ts +9 -2
  73. package/lib/esm/generated/16px/blueprint-icons-16.js +553 -539
  74. package/lib/esm/generated/16px/blueprint-icons-16.js.map +1 -1
  75. package/lib/esm/generated/16px/paths/add-clip.d.ts +2 -0
  76. package/lib/esm/generated/16px/paths/add-clip.js +2 -0
  77. package/lib/esm/generated/16px/paths/add-clip.js.map +1 -0
  78. package/lib/esm/generated/16px/paths/cargo-ship.d.ts +2 -0
  79. package/lib/esm/generated/16px/paths/cargo-ship.js +2 -0
  80. package/lib/esm/generated/16px/paths/cargo-ship.js.map +1 -0
  81. package/lib/esm/generated/16px/paths/clip.d.ts +2 -0
  82. package/lib/esm/generated/16px/paths/clip.js +2 -0
  83. package/lib/esm/generated/16px/paths/clip.js.map +1 -0
  84. package/lib/esm/generated/16px/paths/index.d.ts +7 -0
  85. package/lib/esm/generated/16px/paths/index.js +7 -0
  86. package/lib/esm/generated/16px/paths/index.js.map +1 -1
  87. package/lib/esm/generated/16px/paths/rectangle.d.ts +2 -0
  88. package/lib/esm/generated/16px/paths/rectangle.js +2 -0
  89. package/lib/esm/generated/16px/paths/rectangle.js.map +1 -0
  90. package/lib/esm/generated/16px/paths/ship.d.ts +2 -0
  91. package/lib/esm/generated/16px/paths/ship.js +2 -0
  92. package/lib/esm/generated/16px/paths/ship.js.map +1 -0
  93. package/lib/esm/generated/16px/paths/symbol-rectangle.d.ts +2 -0
  94. package/lib/esm/generated/16px/paths/symbol-rectangle.js +2 -0
  95. package/lib/esm/generated/16px/paths/symbol-rectangle.js.map +1 -0
  96. package/lib/esm/generated/16px/paths/target.d.ts +2 -0
  97. package/lib/esm/generated/16px/paths/target.js +2 -0
  98. package/lib/esm/generated/16px/paths/target.js.map +1 -0
  99. package/lib/esm/generated/20px/blueprint-icons-20.d.ts +9 -2
  100. package/lib/esm/generated/20px/blueprint-icons-20.js +553 -539
  101. package/lib/esm/generated/20px/blueprint-icons-20.js.map +1 -1
  102. package/lib/esm/generated/20px/paths/add-clip.d.ts +2 -0
  103. package/lib/esm/generated/20px/paths/add-clip.js +2 -0
  104. package/lib/esm/generated/20px/paths/add-clip.js.map +1 -0
  105. package/lib/esm/generated/20px/paths/cargo-ship.d.ts +2 -0
  106. package/lib/esm/generated/20px/paths/cargo-ship.js +2 -0
  107. package/lib/esm/generated/20px/paths/cargo-ship.js.map +1 -0
  108. package/lib/esm/generated/20px/paths/clip.d.ts +2 -0
  109. package/lib/esm/generated/20px/paths/clip.js +2 -0
  110. package/lib/esm/generated/20px/paths/clip.js.map +1 -0
  111. package/lib/esm/generated/20px/paths/index.d.ts +7 -0
  112. package/lib/esm/generated/20px/paths/index.js +7 -0
  113. package/lib/esm/generated/20px/paths/index.js.map +1 -1
  114. package/lib/esm/generated/20px/paths/rectangle.d.ts +2 -0
  115. package/lib/esm/generated/20px/paths/rectangle.js +2 -0
  116. package/lib/esm/generated/20px/paths/rectangle.js.map +1 -0
  117. package/lib/esm/generated/20px/paths/ship.d.ts +2 -0
  118. package/lib/esm/generated/20px/paths/ship.js +2 -0
  119. package/lib/esm/generated/20px/paths/ship.js.map +1 -0
  120. package/lib/esm/generated/20px/paths/symbol-rectangle.d.ts +2 -0
  121. package/lib/esm/generated/20px/paths/symbol-rectangle.js +2 -0
  122. package/lib/esm/generated/20px/paths/symbol-rectangle.js.map +1 -0
  123. package/lib/esm/generated/20px/paths/target.d.ts +2 -0
  124. package/lib/esm/generated/20px/paths/target.js +2 -0
  125. package/lib/esm/generated/20px/paths/target.js.map +1 -0
  126. package/lib/esm/iconCodepoints.d.ts +7 -0
  127. package/lib/esm/iconNames.d.ts +14 -0
  128. package/lib/esm/iconSvgPaths.d.ts +3 -2
  129. package/lib/esm/iconSvgPaths.js +3 -4
  130. package/lib/esm/iconSvgPaths.js.map +1 -1
  131. package/lib/esnext/generated/16px/blueprint-icons-16.d.ts +9 -2
  132. package/lib/esnext/generated/16px/blueprint-icons-16.js +553 -539
  133. package/lib/esnext/generated/16px/blueprint-icons-16.js.map +1 -1
  134. package/lib/esnext/generated/16px/paths/add-clip.d.ts +2 -0
  135. package/lib/esnext/generated/16px/paths/add-clip.js +2 -0
  136. package/lib/esnext/generated/16px/paths/add-clip.js.map +1 -0
  137. package/lib/esnext/generated/16px/paths/cargo-ship.d.ts +2 -0
  138. package/lib/esnext/generated/16px/paths/cargo-ship.js +2 -0
  139. package/lib/esnext/generated/16px/paths/cargo-ship.js.map +1 -0
  140. package/lib/esnext/generated/16px/paths/clip.d.ts +2 -0
  141. package/lib/esnext/generated/16px/paths/clip.js +2 -0
  142. package/lib/esnext/generated/16px/paths/clip.js.map +1 -0
  143. package/lib/esnext/generated/16px/paths/index.d.ts +7 -0
  144. package/lib/esnext/generated/16px/paths/index.js +7 -0
  145. package/lib/esnext/generated/16px/paths/index.js.map +1 -1
  146. package/lib/esnext/generated/16px/paths/rectangle.d.ts +2 -0
  147. package/lib/esnext/generated/16px/paths/rectangle.js +2 -0
  148. package/lib/esnext/generated/16px/paths/rectangle.js.map +1 -0
  149. package/lib/esnext/generated/16px/paths/ship.d.ts +2 -0
  150. package/lib/esnext/generated/16px/paths/ship.js +2 -0
  151. package/lib/esnext/generated/16px/paths/ship.js.map +1 -0
  152. package/lib/esnext/generated/16px/paths/symbol-rectangle.d.ts +2 -0
  153. package/lib/esnext/generated/16px/paths/symbol-rectangle.js +2 -0
  154. package/lib/esnext/generated/16px/paths/symbol-rectangle.js.map +1 -0
  155. package/lib/esnext/generated/16px/paths/target.d.ts +2 -0
  156. package/lib/esnext/generated/16px/paths/target.js +2 -0
  157. package/lib/esnext/generated/16px/paths/target.js.map +1 -0
  158. package/lib/esnext/generated/20px/blueprint-icons-20.d.ts +9 -2
  159. package/lib/esnext/generated/20px/blueprint-icons-20.js +553 -539
  160. package/lib/esnext/generated/20px/blueprint-icons-20.js.map +1 -1
  161. package/lib/esnext/generated/20px/paths/add-clip.d.ts +2 -0
  162. package/lib/esnext/generated/20px/paths/add-clip.js +2 -0
  163. package/lib/esnext/generated/20px/paths/add-clip.js.map +1 -0
  164. package/lib/esnext/generated/20px/paths/cargo-ship.d.ts +2 -0
  165. package/lib/esnext/generated/20px/paths/cargo-ship.js +2 -0
  166. package/lib/esnext/generated/20px/paths/cargo-ship.js.map +1 -0
  167. package/lib/esnext/generated/20px/paths/clip.d.ts +2 -0
  168. package/lib/esnext/generated/20px/paths/clip.js +2 -0
  169. package/lib/esnext/generated/20px/paths/clip.js.map +1 -0
  170. package/lib/esnext/generated/20px/paths/index.d.ts +7 -0
  171. package/lib/esnext/generated/20px/paths/index.js +7 -0
  172. package/lib/esnext/generated/20px/paths/index.js.map +1 -1
  173. package/lib/esnext/generated/20px/paths/rectangle.d.ts +2 -0
  174. package/lib/esnext/generated/20px/paths/rectangle.js +2 -0
  175. package/lib/esnext/generated/20px/paths/rectangle.js.map +1 -0
  176. package/lib/esnext/generated/20px/paths/ship.d.ts +2 -0
  177. package/lib/esnext/generated/20px/paths/ship.js +2 -0
  178. package/lib/esnext/generated/20px/paths/ship.js.map +1 -0
  179. package/lib/esnext/generated/20px/paths/symbol-rectangle.d.ts +2 -0
  180. package/lib/esnext/generated/20px/paths/symbol-rectangle.js +2 -0
  181. package/lib/esnext/generated/20px/paths/symbol-rectangle.js.map +1 -0
  182. package/lib/esnext/generated/20px/paths/target.d.ts +2 -0
  183. package/lib/esnext/generated/20px/paths/target.js +2 -0
  184. package/lib/esnext/generated/20px/paths/target.js.map +1 -0
  185. package/lib/esnext/iconCodepoints.d.ts +7 -0
  186. package/lib/esnext/iconNames.d.ts +14 -0
  187. package/lib/esnext/iconSvgPaths.d.ts +3 -2
  188. package/lib/esnext/iconSvgPaths.js +3 -4
  189. package/lib/esnext/iconSvgPaths.js.map +1 -1
  190. package/lib/scss/blueprint-icons-16.scss +546 -539
  191. package/package.json +4 -4
  192. package/scripts/copy-fonts.sh +1 -1
  193. package/scripts/generate-icon-fonts.js +50 -53
  194. package/src/generated/16px/_icon-variables.scss +546 -539
  195. package/src/generated/16px/blueprint-icons-16.css +4 -5
  196. package/src/generated/16px/blueprint-icons-16.eot +0 -0
  197. package/src/generated/16px/blueprint-icons-16.ts +567 -539
  198. package/src/generated/16px/blueprint-icons-16.ttf +0 -0
  199. package/src/generated/16px/blueprint-icons-16.woff +0 -0
  200. package/src/generated/16px/blueprint-icons-16.woff2 +0 -0
  201. package/src/generated/16px/paths/add-clip.ts +1 -0
  202. package/src/generated/16px/paths/cargo-ship.ts +1 -0
  203. package/src/generated/16px/paths/clip.ts +1 -0
  204. package/src/generated/16px/paths/index.ts +7 -0
  205. package/src/generated/16px/paths/rectangle.ts +1 -0
  206. package/src/generated/16px/paths/ship.ts +1 -0
  207. package/src/generated/16px/paths/symbol-rectangle.ts +1 -0
  208. package/src/generated/16px/paths/target.ts +1 -0
  209. package/src/generated/20px/blueprint-icons-20.css +4 -5
  210. package/src/generated/20px/blueprint-icons-20.eot +0 -0
  211. package/src/generated/20px/blueprint-icons-20.ts +567 -539
  212. package/src/generated/20px/blueprint-icons-20.ttf +0 -0
  213. package/src/generated/20px/blueprint-icons-20.woff +0 -0
  214. package/src/generated/20px/blueprint-icons-20.woff2 +0 -0
  215. package/src/generated/20px/paths/add-clip.ts +1 -0
  216. package/src/generated/20px/paths/cargo-ship.ts +1 -0
  217. package/src/generated/20px/paths/clip.ts +1 -0
  218. package/src/generated/20px/paths/index.ts +7 -0
  219. package/src/generated/20px/paths/rectangle.ts +1 -0
  220. package/src/generated/20px/paths/ship.ts +1 -0
  221. package/src/generated/20px/paths/symbol-rectangle.ts +1 -0
  222. package/src/generated/20px/paths/target.ts +1 -0
  223. package/src/iconSvgPaths.ts +3 -4
  224. package/lib/css/blueprint-icons-16.svg +0 -1629
  225. package/lib/css/blueprint-icons-20.svg +0 -1629
  226. package/src/generated/16px/blueprint-icons-16.svg +0 -1629
  227. package/src/generated/20px/blueprint-icons-20.svg +0 -1629
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueprintjs/icons",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-rc.0",
4
4
  "description": "Components, fonts, icons, and css files for creating and displaying icons.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -41,10 +41,10 @@
41
41
  "tslib": "~1.13.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
45
- "@blueprintjs/test-commons": "^1.0.0-beta.2",
44
+ "@blueprintjs/node-build-scripts": "^2.0.0-rc.0",
45
+ "@blueprintjs/test-commons": "^1.0.0-rc.0",
46
46
  "enzyme": "^3.11.0",
47
- "fantasticon": "^1.2.2",
47
+ "fantasticon": "^1.2.3",
48
48
  "mocha": "^8.2.1",
49
49
  "npm-run-all": "^4.1.5",
50
50
  "react": "^16.14.0",
@@ -12,7 +12,7 @@ mkdir -p "$OUTPUT"
12
12
  iconSizes=(16 20)
13
13
 
14
14
  for size in "${iconSizes[@]}"; do
15
- for font in "$INPUT"/"$size"px/*.{eot,svg,ttf,woff,woff2}; do
15
+ for font in "$INPUT"/"$size"px/*.{eot,ttf,woff,woff2}; do
16
16
  cp "$font" "$OUTPUT/"
17
17
  done
18
18
  done
@@ -17,66 +17,63 @@
17
17
  * @fileoverview Generates icon fonts and codepoints from SVG sources
18
18
  */
19
19
 
20
- const { generateFonts, FontAssetType, OtherAssetType } = require("fantasticon");
20
+ const { generateFonts: runFantasticon, FontAssetType, OtherAssetType } = require("fantasticon");
21
21
  const { getLogger } = require("fantasticon/lib/cli/logger");
22
22
  const fs = require("fs");
23
23
  const path = require("path");
24
24
 
25
+ const iconsMetadata = require("../icons.json");
25
26
  const { RESOURCES_DIR, GENERATED_SRC_DIR, NS } = require("./common");
26
27
 
27
28
  const logger = getLogger();
28
- logger.start();
29
+ const codepoints = {};
29
30
 
30
- fs.mkdirSync(path.join(GENERATED_SRC_DIR, `16px/paths`), { recursive: true });
31
- generateFonts({
32
- name: "blueprint-icons-16",
33
- inputDir: path.join(RESOURCES_DIR, "16px"),
34
- outputDir: path.join(GENERATED_SRC_DIR, "16px"),
35
- fontHeight: 16,
36
- fontTypes: [FontAssetType.TTF, FontAssetType.EOT, FontAssetType.WOFF2, FontAssetType.WOFF, FontAssetType.SVG],
37
- // CSS contains @font-face, SCSS contains codepoints, TS contains enums & codepoints
38
- assetTypes: [OtherAssetType.CSS, OtherAssetType.SCSS, OtherAssetType.TS],
39
- templates: {
40
- // N.B. we don't generate CSS, just the map of code points which we can use downstream
41
- scss: path.resolve(__dirname, "./icons-16.scss.hbs"),
42
- css: path.resolve(__dirname, "./icons.css.hbs"),
43
- },
44
- pathOptions: {
45
- scss: path.join(GENERATED_SRC_DIR, "16px", "_icon-variables.scss"),
46
- },
47
- tag: "i",
48
- prefix: `${NS}-icon-standard`,
49
- })
50
- .then(results => {
51
- logger.results(results);
52
- })
53
- .catch(error => {
54
- logger.error(error);
55
- });
31
+ (async function () {
32
+ for (const icon of iconsMetadata) {
33
+ if (Object.values(codepoints).indexOf(icon.codepoint) !== -1) {
34
+ throw new Error(
35
+ `[generate-icon-fonts] Invalid metadata entry in icons.json: icon "${icon.iconName}" cannot have codepoint ${icon.codepoint}, it is already in use.`,
36
+ );
37
+ }
38
+ codepoints[icon.iconName] = icon.codepoint;
39
+ }
40
+
41
+ logger.start();
42
+ await Promise.all([
43
+ connectToLogger(generateFonts(16, `${NS}-icon-standard`)),
44
+ connectToLogger(generateFonts(20, `${NS}-icon-large`)),
45
+ ]);
46
+ })();
56
47
 
57
- fs.mkdirSync(path.join(GENERATED_SRC_DIR, `20px/paths`), { recursive: true });
58
- generateFonts({
59
- name: "blueprint-icons-20",
60
- inputDir: path.join(RESOURCES_DIR, "20px"),
61
- outputDir: path.join(GENERATED_SRC_DIR, "20px"),
62
- fontHeight: 20,
63
- fontTypes: [FontAssetType.TTF, FontAssetType.EOT, FontAssetType.WOFF2, FontAssetType.WOFF, FontAssetType.SVG],
64
- // CSS contains @font-face, SCSS contains codepoints, TS contains enums & codepoints
65
- assetTypes: [OtherAssetType.CSS, OtherAssetType.SCSS, OtherAssetType.TS],
66
- templates: {
67
- // N.B. here we don't generate CSS, or even the code points (we expect them to be the same as icons-16)
68
- scss: path.resolve(__dirname, "./icons-20.scss.hbs"),
69
- css: path.resolve(__dirname, "./icons.css.hbs"),
70
- },
71
- pathOptions: {
72
- scss: path.join(GENERATED_SRC_DIR, "20px", "_icon-variables.scss"),
73
- },
74
- tag: "i",
75
- prefix: `${NS}-icon-large`,
76
- })
77
- .then(results => {
78
- logger.results(results);
79
- })
80
- .catch(error => {
81
- logger.error(error);
48
+ async function generateFonts(size, prefix) {
49
+ fs.mkdirSync(path.join(GENERATED_SRC_DIR, `${size}px/paths`), { recursive: true });
50
+ return runFantasticon({
51
+ name: `blueprint-icons-${size}`,
52
+ inputDir: path.join(RESOURCES_DIR, `${size}px`),
53
+ outputDir: path.join(GENERATED_SRC_DIR, `${size}px`),
54
+ normalize: true,
55
+ descent: 0,
56
+ // N.B. Important: we need to scale up the font height so that the icons do not get visually degraded
57
+ // or compressed through rounding errors (svgicons2svgfont rasterizes the icons in order to convert them)
58
+ // See https://github.com/palantir/blueprint/issues/5002
59
+ fontHeight: size * 20,
60
+ fontTypes: [FontAssetType.TTF, FontAssetType.EOT, FontAssetType.WOFF2, FontAssetType.WOFF],
61
+ // CSS contains @font-face, SCSS contains codepoints, TS contains enums & codepoints
62
+ assetTypes: [OtherAssetType.CSS, OtherAssetType.SCSS, OtherAssetType.TS],
63
+ templates: {
64
+ // N.B. in icons-20, we don't generate CSS or the codepoints since we expect them to be the same as icons-16
65
+ scss: path.resolve(__dirname, `./icons-${size}.scss.hbs`),
66
+ css: path.resolve(__dirname, "./icons.css.hbs"),
67
+ },
68
+ pathOptions: {
69
+ scss: path.join(GENERATED_SRC_DIR, `${size}px`, "_icon-variables.scss"),
70
+ },
71
+ codepoints,
72
+ tag: "i",
73
+ prefix,
82
74
  });
75
+ }
76
+
77
+ function connectToLogger(runner) {
78
+ return runner.then(results => logger.results(results)).catch(error => logger.error(error));
79
+ }