0.9.7 • Published 6 years ago

@ony/icons v0.9.7

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

@ony/icons

А package to generate icons system. Сourtesy of ONY Digital. Supports 2 output modes: django templates and jsx

config

Create icons.config.json file in root of your project

  • prefix: prefix for filenames
  • mode: django or jsx
  • entry: input path to directory with .svg files
  • output: depends on current mode
    • django mode:
      • symbols: output path for a file with svg symbols set
      • scss: output path for a file styles
      • includes: output path for a folder with django templates includes
    • jsx mode:
      • in jsx mode output property is type of string path to a folder where jsx components should be placed

example for django templates: { "prefix": "Icon", "mode": "django", "entry": "./icons", "output": { "symbols": "templates/UI/icons.html", "scss": "client/components/UI/Icons.scss", "includes": "templates/UI/Icons" } }

example for jsx: { "prefix": "Icon", "mode": "jsx", "entry": "test/icons2", "output": "client/UI/Icons" }

cli params

--config path: custom path to a config file

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.9

7 years ago

0.8.8

7 years ago

0.8.7

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.2.0

7 years ago