You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/lib/pattern_assembler.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ var pattern_assembler = function () {
45
45
returnpatternlab.patterns[i];
46
46
}
47
47
}
48
-
plutils.logOrange('Could not find pattern referenced with partial syntax '+partialName+'. This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
48
+
plutils.warning('Could not find pattern referenced with partial syntax '+partialName+'. This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
49
49
returnundefined;
50
50
}
51
51
@@ -81,7 +81,7 @@ var pattern_assembler = function () {
plutils.logRed("Deprecation Warning: Using patternlab-config.json patternStates object will be deprecated in favor of the state frontmatter key associated with individual pattern markdown files.");
84
+
plutils.error("Deprecation Warning: Using patternlab-config.json patternStates object will be deprecated in favor of the state frontmatter key associated with individual pattern markdown files.");
85
85
console.log("This feature will still work in it's current form this release (but still be overridden by the new parsing method), and will be removed in the future.");
86
86
}
87
87
@@ -245,13 +245,13 @@ var pattern_assembler = function () {
console.log('Command Line Interface - usually consumed by an edition');
179
185
console.log('');
180
186
181
-
plutils.logGreen(' patternlab:build');
187
+
plutils.debug(' patternlab:build');
182
188
console.log(' > Compiles the patterns and frontend, outputting to config.paths.public');
183
189
console.log('');
184
190
185
-
plutils.logGreen(' patternlab:patternsonly');
191
+
plutils.debug(' patternlab:patternsonly');
186
192
console.log(' > Compiles the patterns only, outputting to config.paths.public');
187
193
console.log('');
188
194
189
-
plutils.logGreen(' patternlab:version');
195
+
plutils.debug(' patternlab:version');
190
196
console.log(' > Return the version of patternlab-node you have installed');
191
197
console.log('');
192
198
193
-
plutils.logGreen(' patternlab:help');
199
+
plutils.debug(' patternlab:help');
194
200
console.log(' > Get more information about patternlab-node, pattern lab in general, and where to report issues.');
195
201
console.log('');
196
202
197
-
plutils.logGreen(' patternlab:liststarterkits');
203
+
plutils.debug(' patternlab:liststarterkits');
198
204
console.log(' > Returns a url with the list of available starterkits hosted on the Pattern Lab organization Github account');
199
205
console.log('');
200
206
201
-
plutils.logGreen(' patternlab:loadstarterkit');
207
+
plutils.debug(' patternlab:loadstarterkit');
202
208
console.log(' > Load a starterkit into config.paths.source/*');
203
209
console.log(' > NOTE: Overwrites existing content, and only cleans out existing directory if --clean=true argument is passed.');
204
210
console.log(' > NOTE: In most cases, `npm install starterkit-name` will precede this call.');
@@ -274,7 +280,7 @@ var patternlab_engine = function (config) {
274
280
patternlab.userHead=headPattern.extendedTemplate;
275
281
}
276
282
catch(ex){
277
-
plutils.logRed('\nWARNING: Could not find the user-editable header template, currently configured to be at '+path.join(config.paths.source.meta,'_00-head.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
283
+
plutils.error('\nWARNING: Could not find the user-editable header template, currently configured to be at '+path.join(config.paths.source.meta,'_00-head.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
278
284
if(patternlab.config.debug){console.log(ex);}
279
285
process.exit(1);
280
286
}
@@ -294,7 +300,7 @@ var patternlab_engine = function (config) {
294
300
patternlab.userFoot=footPattern.extendedTemplate;
295
301
}
296
302
catch(ex){
297
-
plutils.logRed('\nWARNING: Could not find the user-editable footer template, currently configured to be at '+path.join(config.paths.source.meta,'_01-foot.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
303
+
plutils.error('\nWARNING: Could not find the user-editable footer template, currently configured to be at '+path.join(config.paths.source.meta,'_01-foot.mustache')+'. Your configured path may be incorrect (check paths.source.meta in your config file), the file may have been deleted, or it may have been left in the wrong place during a migration or update.\n');
298
304
if(patternlab.config.debug){console.log(ex);}
299
305
process.exit(1);
300
306
}
@@ -338,13 +344,13 @@ var patternlab_engine = function (config) {
0 commit comments