public static function scan() { Browser::warn("Scanning All Web Modules"); ResourceUtil::$RESOURCE_DIST_DIR = "resources_cache"; // READ MODULES self::$webmodules = self::getModuleProperties(LIB_PATH, self::$webmodules); self::$webmodules = self::getModuleProperties(RESOURCE_PATH, self::$webmodules); self::$cache->set('webmodules', self::$webmodules); // CREATE MODULE FILES self::$modulefiles = array(); $header = new Header(); if (!empty(self::$webmodules['bundles'])) { foreach (self::$webmodules['bundles'] as $module => $moduleObject) { $header->_import($module); } } $header->minify(); self::$cache->set('modulefiles', self::$modulefiles); self::$cache->save(); FileUtil::build_write(self::$BUNDLE_PATH, json_encode(Header::getModules())); Browser::info(self::$webmodules, self::$modulefiles); }
/** Default RudraX Plug * * @RequestMapping(url="buildfile/json/{version}") * */ function bundleJson($version) { include_once RUDRA . "/core/model/Header.php"; Header::init(true); \RudraX\Utils\ResourceUtil::build_read(Header::get_build_file_path()); }
function build($buildConfig = array()) { ResourceUtil::build_js($buildConfig); return $this; }