mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
rename func copyFileToWebsite to copyFileToProjectFolder
This commit is contained in:
parent
b00b933ab9
commit
91763b0f76
1 changed files with 5 additions and 5 deletions
|
@ -152,7 +152,7 @@ if (feature === 'translations') {
|
||||||
blogCreated = true;
|
blogCreated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const copyFileToWebsite = (fileNameFrom, fileNameTo) => {
|
const copyFileToProjectFolder = (fileNameFrom, fileNameTo) => {
|
||||||
const copiedFileName = fileNameTo || fileNameFrom;
|
const copiedFileName = fileNameTo || fileNameFrom;
|
||||||
const src = path.join(folder, fileNameFrom);
|
const src = path.join(folder, fileNameFrom);
|
||||||
const dest = path.join(CWD, '..', copiedFileName);
|
const dest = path.join(CWD, '..', copiedFileName);
|
||||||
|
@ -168,16 +168,16 @@ if (feature === 'translations') {
|
||||||
};
|
};
|
||||||
|
|
||||||
// copy .gitignore file
|
// copy .gitignore file
|
||||||
copyFileToWebsite('gitignore', '.gitignore');
|
copyFileToProjectFolder('gitignore', '.gitignore');
|
||||||
|
|
||||||
// copy Dockerfile file
|
// copy Dockerfile file
|
||||||
copyFileToWebsite('Dockerfile');
|
copyFileToProjectFolder('Dockerfile');
|
||||||
|
|
||||||
// copy docker-compose.yml file
|
// copy docker-compose.yml file
|
||||||
copyFileToWebsite('docker-compose.yml');
|
copyFileToProjectFolder('docker-compose.yml');
|
||||||
|
|
||||||
// copy .dockerignore file
|
// copy .dockerignore file
|
||||||
copyFileToWebsite('dockerignore', '.dockerignore');
|
copyFileToProjectFolder('dockerignore', '.dockerignore');
|
||||||
|
|
||||||
// copy other files
|
// copy other files
|
||||||
const files = glob.sync(`${folder}/**/*`);
|
const files = glob.sync(`${folder}/**/*`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue