ttt-iconifator

1.0.2 • Public • Published

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:

  • [x] Valid Globs

Directories:

  • [x] Valid Regular expressions

There is no need to include / at the beginning and end of the regular expression.
"/The[A-Za-z]+Component/" ----> "The[A-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"
  }
}

Package Sidebar

Install

npm i ttt-iconifator

Weekly Downloads

37

Version

1.0.2

License

ISC

Unpacked Size

67 kB

Total Files

73

Last publish

Collaborators

  • cbrgpl