-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88d647e
commit da27591
Showing
12 changed files
with
289 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
// Importing the Required Modules | ||
const fs = require('fs'); | ||
const readline = require('readline'); | ||
|
||
const file = readline.createInterface({ | ||
input: fs.existsSync('development/fonts.txt') ? fs.createReadStream('development/fonts.txt') : fs.createReadStream('fonts.txt'), | ||
output: process.stdout, | ||
terminal: false | ||
}); | ||
|
||
const fonts = [] | ||
file.on('line', (line) => { | ||
fonts.push(line.trim()) | ||
}); | ||
|
||
file.on('close', () => { | ||
console.log(`Total Fonts: ${fonts.length} :`,fonts ) | ||
fs.writeFileSync( './src/assets/fonts/fonts.json', JSON.stringify(fonts, {}, 4), function(err) { | ||
if (err) throw err; | ||
console.log('Fonts JSON file created'); | ||
} ) | ||
|
||
const webpackFonts = fonts.map( function(font){ | ||
return { | ||
family: font | ||
} | ||
}) | ||
fs.writeFileSync( './webpack.fonts.json', JSON.stringify(webpackFonts, {}, 4), function(err) { | ||
if (err) throw err; | ||
console.log('Webpack Fonts JSON file created'); | ||
} ) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Open Sans | ||
Bangers | ||
Roboto | ||
Dancing Script | ||
Henny Penny | ||
Alfa Slab One | ||
Oswald | ||
Anton | ||
Permanent Marker | ||
Cinzel Decorative | ||
Lato | ||
Karla | ||
Montserrat | ||
Libre Baskerville | ||
Bebas Neue | ||
Fira Sans | ||
Play | ||
Crete Round | ||
Rajdhani | ||
Satisfy | ||
Lobster Two | ||
Orbitron | ||
Parisienne | ||
Playball | ||
Noto Serif | ||
Noto Sans | ||
Lora | ||
Source Serif Pro | ||
Ubuntu | ||
Lemonada | ||
UnifrakturMaguntia | ||
Oleo Script Swash Caps | ||
Creepster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'ae1bb6f1a2ca77fa74f2fa4343935695'); | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '3e63f244d75252778e7269ca7092b12d'); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[ | ||
"Open Sans", | ||
"Bangers", | ||
"Roboto", | ||
"Dancing Script", | ||
"Henny Penny", | ||
"Alfa Slab One", | ||
"Oswald", | ||
"Anton", | ||
"Permanent Marker", | ||
"Cinzel Decorative", | ||
"Lato", | ||
"Karla", | ||
"Montserrat", | ||
"Libre Baskerville", | ||
"Bebas Neue", | ||
"Fira Sans", | ||
"Play", | ||
"Crete Round", | ||
"Rajdhani", | ||
"Satisfy", | ||
"Lobster Two", | ||
"Orbitron", | ||
"Parisienne", | ||
"Playball", | ||
"Noto Serif", | ||
"Noto Sans", | ||
"Lora", | ||
"Source Serif Pro", | ||
"Ubuntu", | ||
"Lemonada", | ||
"UnifrakturMaguntia", | ||
"Oleo Script Swash Caps", | ||
"Creepster" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
[ | ||
{ | ||
"family": "Open Sans" | ||
}, | ||
{ | ||
"family": "Bangers" | ||
}, | ||
{ | ||
"family": "Roboto" | ||
}, | ||
{ | ||
"family": "Dancing Script" | ||
}, | ||
{ | ||
"family": "Henny Penny" | ||
}, | ||
{ | ||
"family": "Alfa Slab One" | ||
}, | ||
{ | ||
"family": "Oswald" | ||
}, | ||
{ | ||
"family": "Anton" | ||
}, | ||
{ | ||
"family": "Permanent Marker" | ||
}, | ||
{ | ||
"family": "Cinzel Decorative" | ||
}, | ||
{ | ||
"family": "Lato" | ||
}, | ||
{ | ||
"family": "Karla" | ||
}, | ||
{ | ||
"family": "Montserrat" | ||
}, | ||
{ | ||
"family": "Libre Baskerville" | ||
}, | ||
{ | ||
"family": "Bebas Neue" | ||
}, | ||
{ | ||
"family": "Fira Sans" | ||
}, | ||
{ | ||
"family": "Play" | ||
}, | ||
{ | ||
"family": "Crete Round" | ||
}, | ||
{ | ||
"family": "Rajdhani" | ||
}, | ||
{ | ||
"family": "Satisfy" | ||
}, | ||
{ | ||
"family": "Lobster Two" | ||
}, | ||
{ | ||
"family": "Orbitron" | ||
}, | ||
{ | ||
"family": "Parisienne" | ||
}, | ||
{ | ||
"family": "Playball" | ||
}, | ||
{ | ||
"family": "Noto Serif" | ||
}, | ||
{ | ||
"family": "Noto Sans" | ||
}, | ||
{ | ||
"family": "Lora" | ||
}, | ||
{ | ||
"family": "Source Serif Pro" | ||
}, | ||
{ | ||
"family": "Ubuntu" | ||
}, | ||
{ | ||
"family": "Lemonada" | ||
}, | ||
{ | ||
"family": "UnifrakturMaguntia" | ||
}, | ||
{ | ||
"family": "Oleo Script Swash Caps" | ||
}, | ||
{ | ||
"family": "Creepster" | ||
} | ||
] |