Skip to content

Commit ad90fee

Browse files
author
Brian Kotek
committed
Formatting changes per pull request comments.
1 parent 4f0fe91 commit ad90fee

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

tools/config/seed.config.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ export class SeedConfig {
385385
PLUGIN_CONFIGS: any = {
386386
/**
387387
* The BrowserSync configuration of the application.
388-
* The default open behavior is to open the browser. To prevent the browser from opening use the `--b` flag when
389-
* running `npm start` (tested with serve.dev).
390-
* Example: `npm start -- --b`
388+
* The default open behavior is to open the browser. To prevent the browser from opening use the `--b` flag when
389+
* running `npm start` (tested with serve.dev).
390+
* Example: `npm start -- --b`
391391
* @type {any}
392392
*/
393393
'browser-sync': {
@@ -408,18 +408,21 @@ export class SeedConfig {
408408

409409
/**
410410
* Recursively merge source onto target.
411+
* @param {any} target The target object (to receive values from source)
412+
* @param {any} source The source object (to be merged onto target)
411413
*/
412-
mergeObject( target: any, source: any ) {
413-
var deepExtend = require('deep-extend');
414-
deepExtend( target, source );
414+
mergeObject(target: any, source: any) {
415+
const deepExtend = require('deep-extend');
416+
deepExtend(target, source);
415417
}
416418

417419
/**
418-
* Recursively merge source onto target.
420+
* Locate a plugin configuration object by plugin key.
421+
* @param {any} pluginKey The object key to look up in PLUGIN_CONFIGS.
419422
*/
420-
getPluginConfig( pluginKey: string ): any {
421-
if( this.PLUGIN_CONFIGS[ pluginKey ] ) {
422-
return this.PLUGIN_CONFIGS[ pluginKey ];
423+
getPluginConfig(pluginKey: string): any {
424+
if (this.PLUGIN_CONFIGS[ pluginKey ]) {
425+
return this.PLUGIN_CONFIGS[pluginKey];
423426
}
424427
return null;
425428
}

tools/tasks/seed/build.html_css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as gulpLoadPlugins from 'gulp-load-plugins';
55
import * as merge from 'merge-stream';
66
import { join } from 'path';
77

8-
import { APP_DEST, APP_SRC, BROWSER_LIST, CSS_DEST, CSS_PROD_BUNDLE, DEPENDENCIES, ENV, TMP_DIR, getPluginConfig } from '../../config';
8+
import { APP_DEST, APP_SRC, BROWSER_LIST, CSS_DEST, CSS_PROD_BUNDLE, DEPENDENCIES, ENV, getPluginConfig, TMP_DIR } from '../../config';
99

1010
const plugins = <any>gulpLoadPlugins();
1111
const cleanCss = require('gulp-clean-css');

0 commit comments

Comments
 (0)