1
0
mirror of synced 2025-11-08 21:07:23 +00:00

test(CLI): add another sandboxed test (with options inverted)

This commit is contained in:
Jason Dreyzehner
2018-03-11 00:51:51 -05:00
parent a0541f9f9b
commit 325ebba0da
3 changed files with 149 additions and 95 deletions

View File

@@ -105,16 +105,21 @@ export async function typescriptStarter(
]);
spinner5.succeed();
const spinner6 = ora('Updating README.md').start();
const spinner6 = ora('Creating README.md').start();
renameSync(
join(projectPath, 'README-starter.md'),
join(projectPath, 'README.md')
);
await replace({
files: join(projectPath, 'README.md'),
from: 'package-name',
from: '[package-name]',
to: projectName
});
await replace({
files: join(projectPath, 'README.md'),
from: '[description]',
to: description
});
spinner6.succeed();
if (!domDefinitions) {