Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.33 KB

README.md

File metadata and controls

81 lines (60 loc) · 1.33 KB

IcoMoonGen

A command-line tool that generates type-safe code from IcoMoon font.

ToDo

  • Support for template files in tools

Installation

Homebrew

$ brew install tosaka07/tap/icomoongen

Mint

$ mint install tosaka07/IcoMoonGen

Manual

$ git clone https://github.com/tosaka07/IcoMoonGen.git
$ make install

Usage

Run icomoongen help to see usage instructions.

USAGE: icomoongen generate <input> [--spec <spec>] [--verbose]

ARGUMENTS:
  <input>                 Path to a zip file containing the files generated by icomoon.

OPTIONS:
  -s, --spec <spec>       Path to the configuration file containing the input and output. (default: icomoongen.yml)
  -v, --verbose
  --version               Show the version.
  -h, --help              Show help information.

icomoongen.yml

You can specify a spec with yml. Code supports default templates or a template file written by you.

code:
  - templateName: swift
    output: output.swift
  - templatePath: ./some-template.stencil
    output: output.kotlin
font:
  - type: ttf
    output: some.ttf

Development

open project with Xcode

$ make generate
$ open IcomoonGen.xcodeproj

Local build

$ make build-debug
$ ./build/debug/icomoongen ...

Release build

$ make build

License

MIT