قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 15:07:44 +00:00

* proof of concept for chunking UMD JavaScript into a set of files that are loaded asynchronously * take into account alternative plugin directories * make chunk count and load umds individually configurable (undocumented config) and get to work * fix a bug and add chunk JS sizes to output of development:compute-js-asset-size * document * fill out TODO documentation * make sure cache buster is added to chunk script srcs * add some checks in case a chunk does not exist on disk (happens during some tests) * use realpath on test PIWIK_INCLUDE_PATH so search/replace on paths for relative path will work * add integration test and get to pass * fix for when disable_merged_assets=1 * fix condition * fix ui test failure * update screenshot Co-authored-by: sgiehl <stefan@matomo.org>
25 خطوط
718 B
PHP
25 خطوط
718 B
PHP
<?php
|
|
|
|
if (!defined('PIWIK_INCLUDE_PATH')) {
|
|
// NOTE: PIWIK_INCLUDE_PATH must end in '/' or some parts of matomo will break
|
|
define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . '/../../..') . '/');
|
|
}
|
|
|
|
if (!defined('PIWIK_USER_PATH')) {
|
|
define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH);
|
|
}
|
|
if (!defined('PIWIK_TEST_MODE')) {
|
|
define('PIWIK_TEST_MODE', true);
|
|
}
|
|
|
|
$GLOBALS['MATOMO_PLUGIN_DIRS'] = array(
|
|
array(
|
|
'pluginsPathAbsolute' => realpath(PIWIK_INCLUDE_PATH . 'tests/resources/custompluginsdir'),
|
|
'webrootDirRelativeToMatomo' => '../../resources/custompluginsdir'
|
|
),
|
|
);
|
|
|
|
require_once PIWIK_INCLUDE_PATH . '/core/bootstrap.php';
|
|
|
|
Piwik\SettingsServer::setMaxExecutionTime(0);
|