blob: e4f346ae1406a53b0f0f67394da9c297ebf3bb33 [file] [log] [blame]
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
var fs = require('fs');
var path = require('path');
var catapultPath = fs.realpathSync(path.join(__dirname, '..', '..'));
var catapultBuildPath = path.join(catapultPath, 'catapult_build');
var node_bootstrap = require(path.join(catapultBuildPath, 'node_bootstrap.js'));
HTMLImportsLoader.addArrayToSourcePath(
node_bootstrap.getSourcePathsForProject('tracing'));
// Go!
HTMLImportsLoader.loadHTML('/tracing/importer/import.html');
HTMLImportsLoader.loadHTML('/tracing/model/model.html');
HTMLImportsLoader.loadHTML('/tracing/extras/full_config.html');
// Make the tracing namespace the main tracing export.
module.exports = global.tr;