mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +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;
|
||||
}
|
||||
|
||||
const copyFileToWebsite = (fileNameFrom, fileNameTo) => {
|
||||
const copyFileToProjectFolder = (fileNameFrom, fileNameTo) => {
|
||||
const copiedFileName = fileNameTo || fileNameFrom;
|
||||
const src = path.join(folder, fileNameFrom);
|
||||
const dest = path.join(CWD, '..', copiedFileName);
|
||||
|
@ -168,16 +168,16 @@ if (feature === 'translations') {
|
|||
};
|
||||
|
||||
// copy .gitignore file
|
||||
copyFileToWebsite('gitignore', '.gitignore');
|
||||
copyFileToProjectFolder('gitignore', '.gitignore');
|
||||
|
||||
// copy Dockerfile file
|
||||
copyFileToWebsite('Dockerfile');
|
||||
copyFileToProjectFolder('Dockerfile');
|
||||
|
||||
// copy docker-compose.yml file
|
||||
copyFileToWebsite('docker-compose.yml');
|
||||
copyFileToProjectFolder('docker-compose.yml');
|
||||
|
||||
// copy .dockerignore file
|
||||
copyFileToWebsite('dockerignore', '.dockerignore');
|
||||
copyFileToProjectFolder('dockerignore', '.dockerignore');
|
||||
|
||||
// copy other files
|
||||
const files = glob.sync(`${folder}/**/*`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue