Skip to content

Commit ae1d0a2

Browse files
committed
chore(index): Alphabetize exported functions
1 parent 4439a14 commit ae1d0a2

File tree

1 file changed

+48
-45
lines changed

1 file changed

+48
-45
lines changed

core/index.js

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ updateNotifier({
3939
updateCheckInterval: 1000 * 60 * 60 * 24 // notify at most once a day
4040
}).notify();
4141

42-
43-
/**
44-
* Returns the standardized default config
45-
*
46-
* @return {object} Returns the object representation of the patternlab-config.json
47-
*/
4842
const getDefaultConfig = function () {
4943
return defaultConfig;
5044
};
@@ -254,24 +248,6 @@ const patternlab_module = function (config) {
254248
}
255249

256250
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-
275251
/**
276252
* build patterns, copy assets, and construct ui
277253
*
@@ -309,6 +285,24 @@ const patternlab_module = function (config) {
309285
});
310286
},
311287

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+
312306
/**
313307
* logs usage
314308
*
@@ -319,20 +313,13 @@ const patternlab_module = function (config) {
319313
},
320314

321315
/**
322-
* build patterns only, leaving existing public files intact
316+
* install plugin already available via `node_modules/`
323317
*
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}
326320
*/
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);
336323
},
337324

338325
/**
@@ -356,22 +343,38 @@ const patternlab_module = function (config) {
356343
},
357344

358345
/**
359-
* install plugin already available via `node_modules/`
346+
* return current version
360347
*
361-
* @param {string} pluginName name of plugin
362-
* @returns {void}
348+
* @returns {string} current patternlab-node version as defined in package.json, as string
363349
*/
364-
installplugin: function (pluginName) {
365-
patternlab.installPlugin(pluginName);
350+
v: function () {
351+
return patternlab.getVersion();
366352
},
367353

368354
/**
369-
* returns all file extensions supported by installed PatternEngines
355+
* logs current version
370356
*
371-
* @returns {Array<string>} all supported file extensions
357+
* @returns {void} current patternlab-node version as defined in package.json, as console output
372358
*/
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+
});
375378
},
376379

377380
/**

0 commit comments

Comments
 (0)