1.1.0 • Published 4 years ago

icanicon-ii-cli v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

icanicon-ii-cli

The icanicon.io command-line tools provide an easy way to sync your icanicon.io managed svg assets directly into your projects.

Getting Started

Install globally

  • npm install -g icanicon-ii-cli

Install within project

  • npm install --save-dev icanicon-ii-cli
  • Now you can add a reusable command as an npm run script:
"scripts": {
  "build": "...",
  "sync-assets": "ii-cli sync --token=54b271ad-6ffe-525e-b7d0-6213aab82053 --board=national_flags --format=react --casing=pascalcase"
},

Example sync command

Sync your assets directly from icanicon.io into your project

ii-cli sync --token=54b271ad-6ffe-525e-b7d0-6213aab82053 --board=national_flags --format=react --casing=pascalcase

Command arguments

  • --token required -> icanicon.io OutputApi token
  • --board required -> name of your board
  • --type required -> format you want to export to. One of:
  • --casing optional -> casing for your file names and component names. One of:
    • camelcase
    • pascalcase
    • kebabcase
    • snakecase
    • lowercase
    • capitalize
    • uppercase