okoo
Ensure your that your filenames are consistent with okoo filename checker!
Last updated a year ago by konstal .
GNU3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install okoo 
SYNC missed versions from official npm registry.

okoo

Okoo is a simple node based consistent filename checker

Installation

npm install okoo

Usage

Add okoo.config.json to your project root

then Add koo to your testing npm script like so:

"scripts": {
  ...
  "test" "okoo"
  ...
}

You may set the config path manually by using using okoo --config ./someDir/okoo.config.json and you can set baseDir of the scan by using okoo --baseDir ./src

Config file structure


languages
  filetype (like "js", "css" or "tsx")
    Some glob patterns // eg  "*.component.ts", "**/*.pipe.ts"
config (optional)
  baseDir (optional): string
ignore (optionalm not yet supported): string[]

Example config:

okoo.config.json
{
    "languages": {
        "ts": [
            "*.component.ts",
            "*.module.ts",
            "*.pipe.ts",
            "index.ts"
        ],
        "js": [
            "/**/*.component.js",
            "/**/*.module.js",
            "/**/*.pipe.js",
            "index.js"
        ],
        "css": [
            "*.component.css"
        ]
    },
    "config": {
        "baseDir": "src/"
    }
}

Current Tags

  • 1.0.2                                ...           latest (a year ago)

3 Versions

  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 3
Dependencies (8)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |