1.0.2 • Published 1 year ago

ttt-iconifator v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Iconifator

The package used to generate the config for the VSC plugin "PKief.material-icon-theme" bypassing the lack of globs support.

Config

Search patterns:

Files:

  • Valid Globs

Directories:

  • Valid Regular expressions

There is no need to include / at the beginning and end of the regular expression. "/TheA-Za-z+Component/" ----> "TheA-Za-z+Component"

Usage

  1. npm i -D ttt-iconifator

  2. Write config

{
  "root": "./frontend/src",
  "patterns": {
    "files": {
      "index.js": "Livescript",
      "**/d.*.js": "Lerna"
    },
    "folders": {
      "FolderPrefix[A-Za-z]+": "Resolver",
      "The[A-Za-z]+": "Vercel"
    }
  },
  "ignore": [ "node_modules", "dist" ]
}
  1. Use command npx iconifator anywhere. On my projects, I bind it to npm prepare and predev;

My package-json.script with husky as addition

{
  "scripts": {
    "predev": "npx ttt-iconifator",
    "dev": "vite",
    "prepare": "husky install && npx ttt-iconifator"
  }
}