Skip to content

Commit

Permalink
Add configuration check for specified templates
Browse files Browse the repository at this point in the history
part of #683
  • Loading branch information
bmuenzenmeyer committed Sep 17, 2017
1 parent 9b16f26 commit 0a41103
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/lib/patternlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,16 @@ function checkConfiguration(patternlab) {
if (!patternlab.config.outputFileSuffixes) {
plutils.warning('Configuration Object "outputFileSuffixes" not found, and defaulted to the following:');
console.log(outputFileSuffixes);
plutils.warning('Since Pattern Lab Core 2.3.0 this configuration option is required. Suggest you add it to your patternlab-config.json file.');
plutils.warning('Since Pattern Lab Node Core 2.3.0 this configuration option is required. Suggest you add it to your patternlab-config.json file.');
console.log();
}
patternlab.config.outputFileSuffixes = _.extend(outputFileSuffixes, patternlab.config.outputFileSuffixes);

if (typeof patternlab.config.paths.source.patternlabFiles === 'string') {
plutils.warning(`Configuration key [paths.source.patternlabFiles] inside patternlab-config.json was found as the string '${patternlab.config.paths.source.patternlabFiles}'`);
plutils.warning('Since Pattern Lab Node Core 3.0.0 this key is an object. Suggest you update this key following this issue: https://github.com/pattern-lab/patternlab-node/issues/683.');
}

}

/**
Expand Down

0 comments on commit 0a41103

Please sign in to comment.