public function generateBuildConfig($configPath)
    {
        $config = $this->collectConfigs();
        $config['build']['baseUrl'] = './';
        $config['build']['out'] = './' . $config['build_path'];
        $config['build']['mainConfigFile'] = './' . $configPath;
        $paths = [
            // build-in configuration
            'require-config' => './' . substr($configPath, 0, -3),
            // build-in require.js lib
            'require-lib' => 'bundles/ekynarequirejs/require',
        ];
        $config['build']['paths'] = array_merge($config['build']['paths'], $paths);
        $config['build']['include'] = array_merge(
            array_keys($paths),
            //array_keys($config['config']['paths'])
            $config['build']['include']
        );
        return $config['build'];
    }
public function generateBuildConfig($configPath)
    {
        $config = $this->collectConfigs();
        $config['build']['baseUrl'] = './';
        $config['build']['out'] = './' . $config['build_path'];
        $config['build']['mainConfigFile'] = './' . $configPath;
        $paths = [
            // build-in configuration
            'require-config' => './' . substr($configPath, 0, -3),
            // build-in require.js lib
            'require-lib' => 'bundles/ekynarequirejs/require',
        ];
        $config['build']['paths'] = array_merge($config['build']['paths'], $paths);
        $config['build']['include'] = array_merge(
            array_keys($paths),
            //array_keys($config['config']['paths'])
            $config['build']['include']
        );
        return $config['build'];
    }
public function generateBuildConfig ( $ configPath ) { $ config = $ this -> collectConfigs ( ) ; $ config [ 'build' ] [ 'baseUrl' ] = './' ; $ config [ 'build' ] [ 'out' ] = './' . $ config [ 'build_path' ] ; $ config [ 'build' ] [ 'mainConfigFile' ] = './' . $ configPath ; $ paths = [ // build-in configuration 'require-config' => './' . substr ( $ configPath , 0 , - 3 ) , // build-in require.js lib 'require-lib' => 'bundles/ekynarequirejs/require' , ] ; $ config [ 'build' ] [ 'paths' ] = array_merge ( $ config [ 'build' ] [ 'paths' ] , $ paths ) ; $ config [ 'build' ] [ 'include' ] = array_merge ( array_keys ( $ paths ) , //array_keys($config['config']['paths']) $ config [ 'build' ] [ 'include' ] ) ; return $ config [ 'build' ] ; }
Generates build config for require.js

@param string $configPath path to require.js main config
@return array
Generates build config for require . js