Skip to content

Commit 39239cd

Browse files
author
erikakinga
authored
add wordpress stack to init (#11)
1 parent f42da18 commit 39239cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import inquirer from 'inquirer';
2-
import { StackConfig, LaravelWizard } from 'stacker-core';
2+
import { StackConfig, WordpressWizard, LaravelWizard } from 'stacker-core';
33

44
import { getStackConfig, catchErrors } from '../utils';
55

@@ -10,6 +10,7 @@ async function getStackName() {
1010
name: 'stack',
1111
message: 'Select the stack',
1212
choices: [
13+
{ value: 'wordpress', name: 'Wordpress' },
1314
{ value: 'laravel', name: 'Laravel' },
1415
{ value: 'rails', name: 'Ruby on Rails' },
1516
{ value: 'django', name: 'Django' },
@@ -19,6 +20,7 @@ async function getStackName() {
1920
}
2021

2122
function getWizard(stack) {
23+
if (stack === 'wordpress') return WordpressWizard;
2224
if (stack === 'laravel') return LaravelWizard;
2325
}
2426

0 commit comments

Comments
 (0)