npm updates

This commit is contained in:
Adam Bradley
2016-01-14 09:43:56 -06:00
parent ecb0d5c96e
commit b73d734201
6 changed files with 6924 additions and 49 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015 Ionic (http://ionic.io/)
Copyright (c) 2015-present Ionic (http://ionic.io/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -127,7 +127,7 @@ def generate_data_files(data):
all_icons = OrderedDict(sorted(all_icons.items(), key=lambda t: t[0]))
f = codecs.open(os.path.join(DATA_PATH, 'ionicons.json'), 'w', 'utf-8')
f.write( json.dumps(all_icons, separators=(',', ':')) )
f.write( json.dumps(all_icons, indent=2, separators=(',', ': ')) )
f.close()
+27
View File
@@ -0,0 +1,27 @@
## Build Instructions
This repo already comes with all the files built and ready to go, but can also build the fonts from the source. Requires Python, FontForge, WOFF2, SVGO and Sass:
1) Install FontForge, which is the program that creates the font files from the SVG files:
$ brew install fontforge ttfautohint
2) Install Google's WOFF2 font compressor
https://github.com/google/woff2
3) Install [Sass](http://sass-lang.com/)
$ gem install sass
4) Install [SVGO](https://github.com/svg/svgo)
$ npm install -g svgo
5) Add or subtract files from the `src/` folder you'd like to be apart of the build.
6) Modify any settings in the `builder/manifest.json` file. You can change the name of the font-family and CSS classname prefix.
7) Run the build command:
python ./builder/generate.py
+6865 -1
View File
File diff suppressed because one or more lines are too long
+29
View File
@@ -0,0 +1,29 @@
{
"name": "ionicons",
"description": "Premium icons for Ionic.",
"version": "3.0.0-alpha.2",
"files": ["dist"],
"keywords": ["ionicons", "ionic", "icon", "svg", "font", "mobile"],
"homepage": "http://ionicons.com/",
"author": {
"name": "Ben Sperry",
"web": "https://twitter.com/bensperry"
},
"contributors": [
{
"name": "Adam Bradley",
"web": "http://twitter.com/adamdbradley"
}
],
"repository": {
"type": "git",
"url": "https://github.com/driftyco/ionicons.git"
},
"bugs": {
"url" : "https://github.com/driftyco/ionicons/issues"
},
"license": "MIT",
"engines" : {
"node" : ">=0.10.3"
}
}
+1 -46
View File
@@ -1,7 +1,7 @@
# Ionicons
The premium icon font for [Ionic](http://ionicframework.com/). Designed by [@benjsperry](https://twitter.com/benjsperry).
Premium icons for [Ionic](http://ionicframework.com/). Designed by [@benjsperry](https://twitter.com/benjsperry).
Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Drifty, nor vice versa.
@@ -10,51 +10,6 @@ Visit [ionicons.com](http://ionicons.com) and check out the search feature, whi
We intend for this icon pack to be used with [Ionic](http://ionicframework.com/), but it’s by no means limited to it. Use them wherever you see fit, personal or commercial. They are free to use and licensed under [MIT](http://opensource.org/licenses/MIT).
## Getting Started
1. Download and extract the font pack
2. Copy the `ionicons.css` to your project
3. Copy the `fonts` folder to your project
4. Ensure the font urls within `ionicons.css` properly reference the `fonts` path within your project.
5. Include a reference to the `ionicons.css` file from every webpage you need to use it.
## HTML Example
You can use [ionicons.com](http://ionicons.com) to easily find the icon you want to use. Once you've copied the desired icon's CSS classname, simply add the `icon` and icon's classname, such as `ion-home` to an HTML element.
<i class="icon ion-home"></i>
## Build Instructions
This repo already comes with all the files built and ready to go, but can also build the fonts from the source. Requires Python, FontForge, WOFF2, SVGO and Sass:
1) Install FontForge, which is the program that creates the font files from the SVG files:
$ brew install fontforge ttfautohint
2) Install Google's WOFF2 font compressor
https://github.com/google/woff2
3) Install [Sass](http://sass-lang.com/)
$ gem install sass
4) Install [SVGO](https://github.com/svg/svgo)
$ npm install -g svgo
5) Add or subtract files from the `src/` folder you'd like to be apart of the build.
6) Modify any settings in the `builder/manifest.json` file. You can change the name of the font-family and CSS classname prefix.
7) Run the build command:
python ./builder/generate.py
## License
Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT).