Skip to content

Commit 832907f

Browse files
committed
Added minor es2015 tweaks
1 parent 6344984 commit 832907f

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

generators/app/prompts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
let utils = require('../../utils/all');
2+
const utils = require('../../utils/all');
33

44
module.exports = [
55
{

utils/all.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

3-
let config = require('./config');
4-
let yeoman = require('./yeoman');
3+
const config = require('./config');
4+
const yeoman = require('./yeoman');
55

66
module.exports = {
7-
config: config,
8-
yeoman: yeoman
7+
config,
8+
yeoman
99
};

utils/config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ let getDefaultChoice = (setting) => {
5757
return config && config.default !== undefined && config.default.length > 0 ? config.default : null;
5858
}
5959

60-
// getChoices
61-
// getDefault
62-
6360
module.exports = {
64-
getSetting: getSetting,
65-
getChoices: getChoices,
66-
getChoiceByKey: getChoiceByKey,
67-
getDefaultChoice: getDefaultChoice
61+
getSetting,
62+
getChoices,
63+
getChoiceByKey,
64+
getDefaultChoice
6865
};

utils/yeoman.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
let path = require('path');
4-
let configUtils = require('./config');
5-
let _ = require('underscore.string');
3+
const path = require('path');
4+
const configUtils = require('./config');
5+
const _ = require('underscore.string');
66

77
// Needed directory paths
88
const baseName = path.basename(process.cwd());
@@ -157,11 +157,11 @@ let getDestinationClassName = (name, type, suffix) => {
157157
};
158158

159159
module.exports = {
160-
getBaseDir: getBaseDir,
161-
getAllSettingsFromComponentName: getAllSettingsFromComponentName,
162-
getAppName: getAppName,
163-
getCleanedPathName: getCleanedPathName,
164-
getComponentStyleName: getComponentStyleName,
165-
getDestinationPath: getDestinationPath,
166-
getDestinationClassName: getDestinationClassName
160+
getBaseDir,
161+
getAllSettingsFromComponentName,
162+
getAppName,
163+
getCleanedPathName,
164+
getComponentStyleName,
165+
getDestinationPath,
166+
getDestinationClassName
167167
};

0 commit comments

Comments
 (0)