Skip to content

Config via package.json #3

@evanplaice

Description

@evanplaice

Add the ability to configure the parser via package.json. Configuration should be implicit (ie require no extra option from the CLI.

Changes

  • implementation
  • tests
  • documentation (update README.md)

The configuration should look like the following.

"jqkill": {
  "root": "src/",
  "match": [
    "**/src/**"
  ],
  "ignore": [
    "**/__test__/*"
  ]
}

Match and ignore patterns get concatenated into a string before being passed into the match function Ex "pattern1,pattern2,patternN".

Precedence

  • if root is defined on the CLI then the value in package.json is ignored
  • if match is defined on the CLI, it overrides package.json
  • if ignore is defined on the cli, it overrides package.json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions