@@ -39,12 +39,6 @@ updateNotifier({
39
39
updateCheckInterval : 1000 * 60 * 60 * 24 // notify at most once a day
40
40
} ) . notify ( ) ;
41
41
42
-
43
- /**
44
- * Returns the standardized default config
45
- *
46
- * @return {object } Returns the object representation of the patternlab-config.json
47
- */
48
42
const getDefaultConfig = function ( ) {
49
43
return defaultConfig ;
50
44
} ;
@@ -254,24 +248,6 @@ const patternlab_module = function (config) {
254
248
}
255
249
256
250
return {
257
- /**
258
- * logs current version
259
- *
260
- * @returns {void } current patternlab-node version as defined in package.json, as console output
261
- */
262
- version : function ( ) {
263
- return patternlab . logVersion ( ) ;
264
- } ,
265
-
266
- /**
267
- * return current version
268
- *
269
- * @returns {string } current patternlab-node version as defined in package.json, as string
270
- */
271
- v : function ( ) {
272
- return patternlab . getVersion ( ) ;
273
- } ,
274
-
275
251
/**
276
252
* build patterns, copy assets, and construct ui
277
253
*
@@ -309,6 +285,24 @@ const patternlab_module = function (config) {
309
285
} ) ;
310
286
} ,
311
287
288
+ /**
289
+ * Returns the standardized default config
290
+ *
291
+ * @return {object } Returns the object representation of the patternlab-config.json
292
+ */
293
+ getDefaultConfig : function ( ) {
294
+ return getDefaultConfig ( ) ;
295
+ } ,
296
+
297
+ /**
298
+ * returns all file extensions supported by installed PatternEngines
299
+ *
300
+ * @returns {Array<string> } all supported file extensions
301
+ */
302
+ getSupportedTemplateExtensions : function ( ) {
303
+ return patternlab . getSupportedTemplateExtensions ( ) ;
304
+ } ,
305
+
312
306
/**
313
307
* logs usage
314
308
*
@@ -319,20 +313,13 @@ const patternlab_module = function (config) {
319
313
} ,
320
314
321
315
/**
322
- * build patterns only, leaving existing public files intact
316
+ * install plugin already available via `node_modules/`
323
317
*
324
- * @param {object } options an object used to control build behavior
325
- * @returns {Promise } a promise fulfilled when build is complete
318
+ * @param {string } pluginName name of plugin
319
+ * @returns {void }
326
320
*/
327
- patternsonly : function ( options ) {
328
- if ( patternlab && patternlab . isBusy ) {
329
- logger . info ( 'Pattern Lab is busy building a previous run - returning early.' ) ;
330
- return Promise . resolve ( ) ;
331
- }
332
- patternlab . isBusy = true ;
333
- return buildPatterns ( options . cleanPublic ) . then ( ( ) => {
334
- patternlab . isBusy = false ;
335
- } ) ;
321
+ installplugin : function ( pluginName ) {
322
+ patternlab . installPlugin ( pluginName ) ;
336
323
} ,
337
324
338
325
/**
@@ -356,22 +343,38 @@ const patternlab_module = function (config) {
356
343
} ,
357
344
358
345
/**
359
- * install plugin already available via `node_modules/`
346
+ * return current version
360
347
*
361
- * @param {string } pluginName name of plugin
362
- * @returns {void }
348
+ * @returns {string } current patternlab-node version as defined in package.json, as string
363
349
*/
364
- installplugin : function ( pluginName ) {
365
- patternlab . installPlugin ( pluginName ) ;
350
+ v : function ( ) {
351
+ return patternlab . getVersion ( ) ;
366
352
} ,
367
353
368
354
/**
369
- * returns all file extensions supported by installed PatternEngines
355
+ * logs current version
370
356
*
371
- * @returns {Array<string> } all supported file extensions
357
+ * @returns {void } current patternlab-node version as defined in package.json, as console output
372
358
*/
373
- getSupportedTemplateExtensions : function ( ) {
374
- return patternlab . getSupportedTemplateExtensions ( ) ;
359
+ version : function ( ) {
360
+ return patternlab . logVersion ( ) ;
361
+ } ,
362
+
363
+ /**
364
+ * build patterns only, leaving existing public files intact
365
+ *
366
+ * @param {object } options an object used to control build behavior
367
+ * @returns {Promise } a promise fulfilled when build is complete
368
+ */
369
+ patternsonly : function ( options ) {
370
+ if ( patternlab && patternlab . isBusy ) {
371
+ logger . info ( 'Pattern Lab is busy building a previous run - returning early.' ) ;
372
+ return Promise . resolve ( ) ;
373
+ }
374
+ patternlab . isBusy = true ;
375
+ return buildPatterns ( options . cleanPublic ) . then ( ( ) => {
376
+ patternlab . isBusy = false ;
377
+ } ) ;
375
378
} ,
376
379
377
380
/**
0 commit comments