public function generateConfigFile($path, $noCache = false)
    {
        $config = ConfigCachingService::getConfigJson($noCache);
        if ($config === '{}') {
            $this->line('No config specified. Config not written to file.');
            return;
        }

        $contents = 'Config.addConfig(' . $config . ');';

        File::put($path, $contents);

        $this->line("Generated $path");
    }