JohnRandom / noderator

0 stars 0 forks source link

Custom configurations and source path #17

Closed JohnRandom closed 7 years ago

JohnRandom commented 7 years ago

Custom configs

Custom configuration can now be used by either:

  1. Using the -c or --config cmdline parameter
  2. Or putting a .nrconfig file into the current project root

See also README.md.

srcPath config

In order to determine the source path for the current project, Noderator will resolve the path the following way:

  1. Whatever is in --path takes precedent
  2. Next, it looks into config.srcPath
  3. If everything else fails, it will default to <projectRoot>/src

Note: The project root is assumed to be the directory that contains the package.json file.