Skip to content

Commit

Permalink
Add warning about default config naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Aug 28, 2014
1 parent 5a93cb3 commit e124d2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var logger = require('./log');
var path = require('path');
var fs = require('fs');
var yaml = require('js-yaml');
var chalk = require('chalk');

/**
* Tests given exception to see if the code is `MODULE_NOT_FOUND` and
Expand Down Expand Up @@ -107,6 +108,14 @@ function requireConfig(config) {
}
}

logger.warn(
'Starting SassDoc ' + chalk.grey('v2.0') + ', the default ' +
'configuration file will be named ' + chalk.grey('.sassdocrc') + ' ' +
'rather than ' + chalk.grey('view.{json,yaml,yml}') +
'. Please consider using the ' + chalk.grey('--config') +
' option right now to specify your own file.'
);

return tryConfigs(['view.json', 'view.yaml', 'view.yml']);
}

Expand Down

0 comments on commit e124d2f

Please sign in to comment.