mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:36 +01:00
automatic create chunks dir, before running RollupJS
This commit is contained in:
parent
84c14710db
commit
7a2a750432
@ -282,6 +282,18 @@ if ($npm)
|
||||
|
||||
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)');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user