Merge branch 'master' into patch-1

This commit is contained in:
Alexandre BODIN 2019-07-15 17:05:08 +02:00 committed by GitHub
commit 97dcb6df54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,17 @@ module.exports = async function createProject(
// copy files
await fse.copy(join(resources, 'files'), rootPath);
// copy dot files
const dotFiles = await fse.readdir(join(resources, 'dot-files'));
await Promise.all(
dotFiles.map(name => {
return fse.copy(
join(resources, 'dot-files', name),
join(rootPath, `.${name}`)
);
})
);
// copy templates
await fse.writeJSON(
join(rootPath, 'package.json'),