Added minor es2015 tweaks

This commit is contained in:
Chris 2016-03-29 23:01:42 +02:00
parent 6344984d65
commit 832907f2fd
4 changed files with 19 additions and 22 deletions

View File

@ -1,5 +1,5 @@
'use strict';
let utils = require('../../utils/all');
const utils = require('../../utils/all');
module.exports = [
{

View File

@ -1,9 +1,9 @@
'use strict';
let config = require('./config');
let yeoman = require('./yeoman');
const config = require('./config');
const yeoman = require('./yeoman');
module.exports = {
config: config,
yeoman: yeoman
config,
yeoman
};

View File

@ -57,12 +57,9 @@ let getDefaultChoice = (setting) => {
return config && config.default !== undefined && config.default.length > 0 ? config.default : null;
}
// getChoices
// getDefault
module.exports = {
getSetting: getSetting,
getChoices: getChoices,
getChoiceByKey: getChoiceByKey,
getDefaultChoice: getDefaultChoice
getSetting,
getChoices,
getChoiceByKey,
getDefaultChoice
};

View File

@ -1,8 +1,8 @@
'use strict';
let path = require('path');
let configUtils = require('./config');
let _ = require('underscore.string');
const path = require('path');
const configUtils = require('./config');
const _ = require('underscore.string');
// Needed directory paths
const baseName = path.basename(process.cwd());
@ -157,11 +157,11 @@ let getDestinationClassName = (name, type, suffix) => {
};
module.exports = {
getBaseDir: getBaseDir,
getAllSettingsFromComponentName: getAllSettingsFromComponentName,
getAppName: getAppName,
getCleanedPathName: getCleanedPathName,
getComponentStyleName: getComponentStyleName,
getDestinationPath: getDestinationPath,
getDestinationClassName: getDestinationClassName
getBaseDir,
getAllSettingsFromComponentName,
getAppName,
getCleanedPathName,
getComponentStyleName,
getDestinationPath,
getDestinationClassName
};