fontello-installer
Version:
Command line interface to easly integrate/manage Fontello fonts into your application.
61 lines (33 loc) • 1.3 kB
Markdown
# Fontello CLI
Command line interface to easly integrate/manage Fontello fonts into your application.
## Installation
```sh
$ npm install fontello-installer
```
##Usage
```
var fontello = require('fontello-installer');
fontello.run({
config:'config.json',
cssPath:'./src/app/styles/css',
cssFiles:['animation.css','fontello.css'],
cssFontPath:'/assets/fonts/',
fontPath:'./src/app/assets/fonts'
});
```
##Configurations:
**config: (Required)**
File path to your config.json, you should specify the path, if file does not exits, system will create empty file for you during the installation.
*config.json*
**cssPath: (Required)**
Folder path, where you want to save your CSS files (This path should phycical exits)
*'./src/app/styles/css'*
**cssFiles: (Optional)**
Fontello create four differnt files, but most f the time we dont need all of them, provide array of file name need, skiping this option will copy all CC files
*['animation.css','fontello.css']*
**cssFontPath:**
Folder path, where you want to save your CSS files (This path should phycical exits)
*'/assets/fonts/'*
**fontPath:**
Fontello CSS files include fonts from '../font/' path, provide the diffenr prefix if required to load fonts for your project.
*'./src/app/assets/fonts'*