forked from oblador/react-native-vector-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move icon build scripts out of package.json
- Loading branch information
Showing
13 changed files
with
148 additions
and
12 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
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,14 @@ | ||
#!/bin/bash -e | ||
|
||
rm -rf {Fonts,Entypo.js,EvilIcons.js,FontAwesome.js,Foundation.js,Ionicons.js,MaterialIcons.js,MaterialCommunityIcons.js,Octicons.js,Zocial.js,SimpleLineIcons.js,glyphmaps} | ||
mkdir Fonts glyphmaps | ||
./scripts/entypo.sh | ||
./scripts/evilicons.sh | ||
./scripts/fontawesome.sh | ||
./scripts/foundation.sh | ||
./scripts/ionicons.sh | ||
./scripts/materialicons.sh | ||
./scripts/materialcommunityicons.sh | ||
./scripts/octicons.sh | ||
./scripts/zocial.sh | ||
./scripts/simplelineicons.sh |
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,16 @@ | ||
#!/bin/bash -e | ||
|
||
TEMP_DIR=`mktemp -d -t rnvi` | ||
mkdir $TEMP_DIR/svg | ||
curl https://dl.dropboxusercontent.com/u/4339492/entypo.zip > $TEMP_DIR/entypo.zip | ||
unzip -j $TEMP_DIR/entypo.zip *.svg -x __MACOSX/* -d $TEMP_DIR/svg | ||
fontcustom compile $TEMP_DIR/svg -o $TEMP_DIR -n Entypo -t css -h | ||
node bin/generate-icon $TEMP_DIR/Entypo.css\ | ||
--componentName=Entypo\ | ||
--fontFamily=Entypo\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Entypo.json\ | ||
> Entypo.js | ||
cp $TEMP_DIR/Entypo.ttf Fonts | ||
rm -rf $TEMP_DIR | ||
rm -rf .fontcustom-manifest.json |
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,14 @@ | ||
#!/bin/bash -e | ||
|
||
TEMP_DIR=`mktemp -d -t rnvi` | ||
fontcustom compile node_modules/evil-icons/assets/icons -o $TEMP_DIR -n EvilIcons -t css -h | ||
node bin/generate-icon $TEMP_DIR/EvilIcons.css\ | ||
--prefix=.icon-ei-\ | ||
--componentName=EvilIcons\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/EvilIcons.json\ | ||
--fontFamily=EvilIcons\ | ||
> EvilIcons.js | ||
cp $TEMP_DIR/EvilIcons.ttf Fonts | ||
rm -rf $TEMP_DIR | ||
rm -rf .fontcustom-manifest.json |
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,9 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon Feather/style.css\ | ||
--componentName=Feather\ | ||
--fontFamily=Feather\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Feather.json\ | ||
> Feather.js | ||
cp Feather/fonts/Feather.ttf Fonts/Feather.ttf |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon node_modules/font-awesome/css/font-awesome.css\ | ||
--prefix=.fa-\ | ||
--componentName=FontAwesome\ | ||
--fontFamily=FontAwesome\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/FontAwesome.json\ | ||
> FontAwesome.js | ||
cp node_modules/font-awesome/fonts/fontawesome-webfont.ttf Fonts/FontAwesome.ttf |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon bower_components/foundation-icon-fonts/foundation-icons.css\ | ||
--prefix=.fi-\ | ||
--componentName=Foundation\ | ||
--fontFamily=fontcustom\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Foundation.json\ | ||
> Foundation.js | ||
cp bower_components/foundation-icon-fonts/foundation-icons.ttf Fonts/Foundation.ttf |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon node_modules/ionicons/dist/css/ionicons.css\ | ||
--prefix=.ion-\ | ||
--componentName=Ionicons\ | ||
--fontFamily=Ionicons\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Ionicons.json\ | ||
> Ionicons.js | ||
cp node_modules/ionicons/dist/fonts/ionicons.ttf Fonts/Ionicons.ttf |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon node_modules/mdi/css/materialdesignicons.css\ | ||
--prefix=.mdi-\ | ||
--componentName=MaterialCommunityIcons\ | ||
--fontFamily='Material Design Icons'\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/MaterialCommunityIcons.json\ | ||
> MaterialCommunityIcons.js | ||
cp node_modules/mdi/fonts/materialdesignicons-webfont.ttf Fonts/MaterialCommunityIcons.ttf |
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,9 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-material-icons node_modules/material-design-icons/iconfont/codepoints\ | ||
--componentName=MaterialIcons\ | ||
--fontFamily='Material Icons'\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/MaterialIcons.json\ | ||
> MaterialIcons.js | ||
cp node_modules/material-design-icons/iconfont/MaterialIcons-Regular.ttf Fonts/MaterialIcons.ttf |
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,14 @@ | ||
#!/bin/bash -e | ||
|
||
TEMP_DIR=`mktemp -d -t rnvi` | ||
fontcustom compile node_modules/octicons/build/svg -o $TEMP_DIR -n Octicons -t css -h | ||
node bin/generate-icon $TEMP_DIR/Octicons.css\ | ||
--prefix=.icon-\ | ||
--componentName=Octicons\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Octicons.json\ | ||
--fontFamily=Octicons\ | ||
> Octicons.js | ||
cp $TEMP_DIR/Octicons.ttf Fonts | ||
rm -rf $TEMP_DIR | ||
rm -rf .fontcustom-manifest.json |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon bower_components/simple-line-icons/css/simple-line-icons.css\ | ||
--prefix=.icon-\ | ||
--componentName=SimpleLineIcons\ | ||
--fontFamily=simple-line-icons\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/SimpleLineIcons.json\ | ||
> SimpleLineIcons.js | ||
cp bower_components/simple-line-icons/fonts/Simple-Line-Icons.ttf Fonts/SimpleLineIcons.ttf |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
node bin/generate-icon bower_components/css-social-buttons/css/zocial.css\ | ||
--prefix=.zocial.\ | ||
--componentName=Zocial\ | ||
--fontFamily=zocial\ | ||
--template=templates/separated-icon-set.tpl\ | ||
--glyphmap=glyphmaps/Zocial.json\ | ||
> Zocial.js | ||
cp bower_components/css-social-buttons/css/zocial.ttf Fonts/Zocial.ttf |