1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Exclude Composer files in GitHub sync for e107 v2

This commit is contained in:
Nick Liu
2020-02-14 12:45:45 +01:00
parent 7269c80468
commit 2a69227135
3 changed files with 7 additions and 1 deletions

View File

@@ -55,9 +55,11 @@ class _system_cron
$mes->addDebug("Removed install.php");
}
if(!deftrue('e_DEVELOPER')) // leave tests folder intact if developer mode is active.
if(!deftrue('e_DEVELOPER')) // Leave development files intact if developer mode is active.
{
$fl->removeDir(e_BASE.'e107_tests');
unlink(e_BASE."composer.json");
unlink(e_BASE."composer.lock");
}
}
else

View File

@@ -1692,6 +1692,8 @@ class e_file
'e107-master/CONTRIBUTING.md', # moved to ./.github/CONTRIBUTING.md
'e107-master/LICENSE',
'e107-master/README.md',
'e107-master/composer.json',
'e107-master/composer.lock',
'e107-master/install.php',
'e107-master/favicon.ico',
);

View File

@@ -305,6 +305,8 @@ class e_fileTest extends \Codeception\Test\Unit
'/CONTRIBUTING.md',
'/LICENSE',
'/README.md',
'/composer.json',
'/composer.lock',
'/install.php',
'/favicon.ico',
]