mirror of
https://github.com/strapi/strapi.git
synced 2025-12-11 06:53:12 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
97dcb6df54
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user