Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
split custom env (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Macdonald authored and Thomas Kelly committed Jul 31, 2017
1 parent a26e69e commit b01f2e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/slate-cli/generators/new-theme/includes/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ function hasGitRepo(answers) {
* @private
*/
function getDefaultEnvSelect(answers) {
var hasCustom = hasCustomEnvironments(answers);

if (hasCustom) {
answers.environments.pop(); // removes `custom` selection
answers.environments = answers.environments.concat(answers.customEnv.split(/,\s*/));
}

return answers.environments;
}

Expand Down

0 comments on commit b01f2e2

Please sign in to comment.