Skip to content

generate a typescript enum file according to an iconfont-repo

License

Notifications You must be signed in to change notification settings

JPJeePee/iconfont-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iconfont-enum

Step1: Download

git clone [email protected]:JPJeePee/iconfont-enum.git

Step2: Install

npm install

Step3: Config

{
  // your iconfont-repo address
  "symbol_url": "//at.alicdn.com/t/font_1373348_ghk94ooopqr.js",
  // the directory where to put your output
  "save_dir": "./",
  // exclude this array from your iconfont enum
  "excludes": []
}

Step4: Run

npm run generate

About

generate a typescript enum file according to an iconfont-repo

Resources

License

Stars

Watchers

Forks