react-deploy
Version:
a deployment script for create react app to s3
10 lines (9 loc) • 322 B
JavaScript
module.exports = function(commandOption, settings, optionKey, defaultValue) {
if (commandOption !== undefined) {
return commandOption;
}
if (settings && settings['react-deploy'] && settings['react-deploy'][optionKey] !== undefined) {
return settings['react-deploy'][optionKey];
}
return defaultValue;
};