mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Added minor es2015 tweaks
This commit is contained in:
parent
6344984d65
commit
832907f2fd
@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
let utils = require('../../utils/all');
|
||||
const utils = require('../../utils/all');
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
|
||||
@ -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
|
||||
};
|
||||
|
||||
@ -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
|
||||
};
|
||||
|
||||
@ -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
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user