Skip to content

Commit bd44467

Browse files
author
Kelly Selden
committed
don't init when addon
1 parent 0e70957 commit bd44467

2 files changed

Lines changed: 14 additions & 41 deletions

File tree

src/get-start-and-end-commands.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,20 @@ function createProject(runEmber) {
178178
}
179179

180180
if (options.blueprint) {
181-
await runEmber({
182-
packageRoot,
183-
cwd,
184-
projectName: options.projectName,
185-
blueprint: options.blueprint
186-
});
187-
}
188-
189-
if (options.blueprint && isDefaultAddonBlueprint(options.blueprint)) {
190-
await module.exports.installAddonBlueprint({
191-
cwd,
192-
projectName: options.projectName,
193-
blueprint: options.blueprint
194-
});
181+
if (isDefaultAddonBlueprint(options.blueprint)) {
182+
await module.exports.installAddonBlueprint({
183+
cwd,
184+
projectName: options.projectName,
185+
blueprint: options.blueprint
186+
});
187+
} else {
188+
await runEmber({
189+
packageRoot,
190+
cwd,
191+
projectName: options.projectName,
192+
blueprint: options.blueprint
193+
});
194+
}
195195
}
196196

197197
if (!(options.blueprint && isDefaultBlueprint(options.blueprint))) {

test/unit/get-start-and-end-commands-test.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -551,20 +551,6 @@ describe(_getStartAndEndCommands, function() {
551551
{
552552
cwd
553553
}
554-
],
555-
[
556-
'node',
557-
[
558-
path.normalize(`${packageRoot}/bin/ember`),
559-
'init',
560-
'-sn',
561-
'-sb',
562-
'-b',
563-
blueprintPath
564-
],
565-
{
566-
cwd: projectPath
567-
}
568554
]
569555
]);
570556

@@ -617,19 +603,6 @@ describe(_getStartAndEndCommands, function() {
617603
{
618604
cwd
619605
}
620-
],
621-
[
622-
[
623-
packageName,
624-
'init',
625-
'-sn',
626-
'-sb',
627-
'-b',
628-
blueprintPath
629-
],
630-
{
631-
cwd: projectPath
632-
}
633606
]
634607
]);
635608

0 commit comments

Comments
 (0)