0.0.7 • Published 6 years ago

recon-config v0.0.7

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
6 years ago

recon-config

Recon configuration management.

Part of Recon: Code Intelligence for React

Configuration

All projects hoping to use Recon should have a .reconrc file at their root.

  • context - Where should we search for files (default process.cwd())
  • files (required) - Glob pattern telling which files recon should parse. This should be pretty much all js files in your application which are likely to be used by or use a component. It is recommended to exclude any meta files such as tests.
  • resolve - Namespace to help recon resolve require/import paths correctly
    • roots - An array of paths (relative to working directory) from which to resolve paths. Eg. require('components/button') and roots: [core] would look in core/components/button
    • extensions - An array of extensions to include when resolving paths without an explicit extension. Default: ['.js', '.jsx']
  • ignore - Regex to exclude paths from being parsed (default /node_modules/)
    • Note: atm we don't support flags, pr's welcome!
Example configuration
{
  "context": "src",
  "files": "**/!(*-test|*-tests|*.manifest).js*",
  "resolve": {
    "roots": [
      "core",
      ""
    ]
  },
  "ignore": "/node_modules/"
}

Note: If you make changes to your project config file you must restart your recon cli!

0.0.7

6 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago