From 8373b007f6bcfe36fa75cdfbaecf94c3e923d741 Mon Sep 17 00:00:00 2001 From: Yannick Date: Thu, 20 Oct 2022 10:23:59 +0200 Subject: [PATCH] #49 Add codepoints for --- .fantasticonrc.js | 10 +- docs/fonts/valkyrie.json | 225 +++++++++++++++++++++++++++++++++++++++ package-lock.json | 1 - package.json | 6 +- 4 files changed, 234 insertions(+), 8 deletions(-) create mode 100644 docs/fonts/valkyrie.json diff --git a/.fantasticonrc.js b/.fantasticonrc.js index f4dc5ffb..cf90c105 100644 --- a/.fantasticonrc.js +++ b/.fantasticonrc.js @@ -1,12 +1,15 @@ +const codepoints = require('./dist/fonts/valkyrie.json') + module.exports = { inputDir: './icons', outputDir: './dist', fontTypes: ['ttf', 'woff', 'woff2', 'eot'], - assetTypes: ['css', 'scss', 'html'], + assetTypes: ['css', 'scss', 'html', 'json'], fontsUrl: '.', name: 'Valkyrie', prefix: 'vi', selector: '.vi', + codepoints, normalize: true, descent: 26, templates: { @@ -21,6 +24,7 @@ module.exports = { woff2: './dist/fonts/Valkyrie.woff2', css: './dist/fonts/Valkyrie.css', scss: './dist/fonts/Valkyrie.scss', - html: './docs/index.html' + html: './docs/index.html', + json: './dist/fonts/valkyrie.json', } -}; \ No newline at end of file +}; diff --git a/docs/fonts/valkyrie.json b/docs/fonts/valkyrie.json new file mode 100644 index 00000000..3f13b963 --- /dev/null +++ b/docs/fonts/valkyrie.json @@ -0,0 +1,225 @@ +{ + "a-gum": 61697, + "address-book": 61698, + "angle-down": 61699, + "angle-left": 61700, + "angle-right": 61701, + "angle-up": 61702, + "angles-y": 61703, + "apple-app-store": 61704, + "arrow-down-short-wide": 61705, + "arrow-down-to-line": 61706, + "arrow-down-wide-short": 61707, + "arrow-down": 61708, + "arrow-left-from-bracket": 61709, + "arrow-left-to-bracket": 61710, + "arrow-left-to-line": 61711, + "arrow-left": 61712, + "arrow-pointer": 61713, + "arrow-right-from-bracket": 61714, + "arrow-right-prohibited": 61715, + "arrow-right-to-bracket": 61716, + "arrow-right-to-line": 61717, + "arrow-right": 61718, + "arrow-rotate-right": 61719, + "arrow-up-short-wide": 61720, + "arrow-up-to-line": 61721, + "arrow-up-wide-short": 61722, + "arrow-up": 61723, + "arrows-rotate-right": 61724, + "asterisk": 61725, + "at": 61726, + "backward": 61727, + "bars": 61728, + "blf": 61729, + "bold": 61730, + "book": 61731, + "box-open-full": 61732, + "brackets-curly": 61733, + "bug": 61734, + "building": 61735, + "calendar-stars": 61736, + "calendar": 61737, + "chain-slash": 61738, + "chain": 61739, + "chart-pie": 61740, + "check": 61741, + "chevron-down": 61742, + "chevron-left": 61743, + "chevron-right": 61744, + "chevron-up": 61745, + "chrome": 61746, + "circle-check": 61747, + "circle-exclamation": 61748, + "circle-info": 61749, + "circle-plus": 61750, + "circle-question": 61751, + "circle-user": 61752, + "circle-xmark": 61753, + "city": 61754, + "clock-rotate-left": 61755, + "clock": 61756, + "code": 61757, + "codeblock": 61758, + "compass": 61759, + "compress": 61760, + "copy": 61761, + "devices": 61762, + "display": 61763, + "earth": 61764, + "eclipse": 61765, + "edge": 61766, + "ellipsis": 61767, + "envelope": 61768, + "ethernet": 61769, + "euro": 61770, + "expand": 61771, + "eye-slash": 61772, + "eye": 61773, + "facebook-messenger": 61774, + "facebook": 61775, + "fast-backward": 61776, + "fast-forward": 61777, + "fax": 61778, + "file": 61779, + "files-list": 61780, + "files": 61781, + "filmstrip": 61782, + "filter-plus": 61783, + "filter-xmark": 61784, + "filter": 61785, + "fingerprint": 61786, + "firefox": 61787, + "flag-checkered": 61788, + "flag": 61789, + "floppy-disk": 61790, + "folder": 61791, + "forward": 61792, + "gauge": 61793, + "gear": 61794, + "gift": 61795, + "github": 61796, + "google-play": 61797, + "grid": 61798, + "grip-lines": 61799, + "heading-1": 61800, + "heading-2": 61801, + "heading-3": 61802, + "heading-4": 61803, + "heading-5": 61804, + "heading-6": 61805, + "headset": 61806, + "heart-crack": 61807, + "heart-half": 61808, + "heart": 61809, + "house": 61810, + "id-card": 61811, + "image": 61812, + "italic": 61813, + "laptop": 61814, + "layers-plus": 61815, + "layers": 61816, + "lightbulb-on": 61817, + "lightbulb": 61818, + "line": 61819, + "linkedin": 61820, + "list-checks": 61821, + "list-clock": 61822, + "list-ordered-clock": 61823, + "list-ordered": 61824, + "list": 61825, + "location-pin-dot": 61826, + "location-pin-slash": 61827, + "location-pin": 61828, + "location-pins-route": 61829, + "lock-open": 61830, + "lock": 61831, + "magnifying-glass": 61832, + "megaphone": 61833, + "message-pen": 61834, + "message-smile": 61835, + "message-text": 61836, + "message": 61837, + "microphone": 61838, + "moon": 61839, + "music": 61840, + "network": 61841, + "numpad": 61842, + "paper-plane": 61843, + "parachute-box": 61844, + "paragraph": 61845, + "pause": 61846, + "pen": 61847, + "people-circle": 61848, + "people": 61849, + "person-clock": 61850, + "person-gear": 61851, + "person-headset": 61852, + "person-list": 61853, + "person-lock": 61854, + "person-plus": 61855, + "person": 61856, + "phone-arrow-down-left-prohibited": 61857, + "phone-arrow-down-left": 61858, + "phone-arrow-up-right-prohibited": 61859, + "phone-arrow-up-right": 61860, + "phone-clock": 61861, + "phone-gear": 61862, + "phone-list": 61863, + "phone-office": 61864, + "phone-volume": 61865, + "phone": 61866, + "play-pause": 61867, + "play": 61868, + "plus": 61869, + "power": 61870, + "prohibited": 61871, + "puzzle-piece": 61872, + "quote": 61873, + "redo": 61874, + "repeat-once": 61875, + "repeat": 61876, + "safari": 61877, + "server": 61878, + "shield-keyhole": 61879, + "shield-plus": 61880, + "shield-xmark": 61881, + "shield": 61882, + "shuffle": 61883, + "sim-card": 61884, + "sippy": 61885, + "sliders": 61886, + "smartphone-arrow-right": 61887, + "smartphone": 61888, + "spinner-third": 61889, + "spy": 61890, + "square-gum": 61891, + "star": 61892, + "stop": 61893, + "store": 61894, + "strikethrough": 61895, + "sun": 61896, + "swatchbook": 61897, + "table-clock": 61898, + "table": 61899, + "tag": 61900, + "tower-broadcast": 61901, + "trash-can": 61902, + "triangle-exclamation": 61903, + "underline": 61904, + "undo": 61905, + "valkyrie-sword": 61906, + "video": 61907, + "voicemail": 61908, + "volume-0": 61909, + "volume-1": 61910, + "volume-2": 61911, + "volume-3": 61912, + "volume-slash": 61913, + "wallpaper": 61914, + "waveform": 61915, + "webhooks-clock": 61916, + "webhooks": 61917, + "window": 61918, + "xmark": 61919 +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2cadddc4..3b4feb50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "postcss-cli": "10.0.0", "react": "18.2.0", "react-dom": "18.2.0", - "rimraf": "3.0.2", "sass": "1.55.0", "svg-to-ts": "8.9.0", "svgo": "2.8.0", diff --git a/package.json b/package.json index 6f891a5d..19fe68c8 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,9 @@ "build": "npm run build:esm && npm run build:cjs", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir dist/cjs", - "clean": "rimraf dist", "docs:fonts": "copyfiles -a \"dist/fonts/*.*\" \"docs/fonts\" -f", "fonts": "npm run fonts:generate && npm run fonts:docs", - "fonts:generate": "mkdirp dist/fonts && fantasticon", + "fonts:generate": "fantasticon", "fonts:docs": "copyfiles -a \"dist/fonts/*.*\" \"docs/fonts\" -f", "icons": "npm run icons:clean && npm run icons:ts", "icons:clean": "svgo -f ./icons -o ./icons", @@ -20,7 +19,7 @@ "icons:ts": "svg-to-ts-constants", "mellow": "svgo -f ./mellow -o ./mellow", "test": "echo \"Error: no test specified\" && exit 1", - "prod": "npm run clean && npm run icons && npm run fonts && npm run build && npm run scss", + "prod": "npm run icons && npm run fonts && npm run build && npm run scss", "scss": "npm run scss:compile && npm run scss:prefix && npm run scss:copy", "scss:compile": "node-sass src -o dist --output-style compressed", "scss:copy": "bundle-scss --mask \"src/valkyrie.scss\" --dest \"dist/valkyrie.scss\"", @@ -65,7 +64,6 @@ "postcss-cli": "10.0.0", "react": "18.2.0", "react-dom": "18.2.0", - "rimraf": "3.0.2", "sass": "1.55.0", "svg-to-ts": "8.9.0", "svgo": "2.8.0",