Skip to content

Commit f2fd281

Browse files
author
Kelly Selden
committed
don't add --no-welcome for custom blueprints
1 parent eb1fa2e commit f2fd281

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function getStartAndEndCommands({
1717
options += ' --yarn';
1818
}
1919

20-
if (!projectOptions.includes('welcome')) {
20+
if (!projectOptions.includes('welcome') && !projectOptions.includes('blueprint')) {
2121
options += ' --no-welcome';
2222
}
2323

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ describe(_getStartAndEndCommands, function() {
147147
});
148148

149149
it('can create a project from remote', async function() {
150-
let { createProjectFromRemote } = getStartAndEndCommands();
150+
let { createProjectFromRemote } = getStartAndEndCommands({
151+
projectOptions: ['blueprint'],
152+
startBlueprint: { name: blueprint }
153+
});
151154

152155
let createProject = createProjectFromRemote({
153156
options: {
@@ -163,7 +166,7 @@ describe(_getStartAndEndCommands, function() {
163166
expect(await createProject(cwd)).to.equal(projectPath);
164167

165168
expect(npxStub.args).to.deep.equal([[
166-
`${packageName} new ${projectName} -sn -sg --no-welcome -b ${blueprintPath}`,
169+
`${packageName} new ${projectName} -sn -sg -b ${blueprintPath}`,
167170
{
168171
cwd
169172
}

0 commit comments

Comments
 (0)