mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
automatic create chunks dir, before running RollupJS
This commit is contained in:
parent
27fe43825f
commit
fdb41a2276
@ -282,6 +282,18 @@ if ($npm)
|
|||||||
|
|
||||||
if ($grunt) run_cmd($grunt, 'grunt');
|
if ($grunt) run_cmd($grunt, 'grunt');
|
||||||
|
|
||||||
|
if (!file_exists($chunks=__DIR__.'/chunks') || !is_dir($chunks))
|
||||||
|
{
|
||||||
|
if (!is_dir($chunks))
|
||||||
|
{
|
||||||
|
unlink($chunks);
|
||||||
|
}
|
||||||
|
if (!mkdir($chunks, 0755) && !is_dir($chunks))
|
||||||
|
{
|
||||||
|
throw new \RuntimeException(sprintf('Clound NOT create directory "%s"!', $chunks));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
run_cmd($npm .' run build', 'rollup (npm run build)');
|
run_cmd($npm .' run build', 'rollup (npm run build)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user