1// Copyright (c) 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4'use strict';
5
6var fs = require('fs');
7var path = require('path');
8
9var catapultPath = fs.realpathSync(path.join(__dirname, '..', '..'));
10var catapultBuildPath = path.join(catapultPath, 'catapult_build');
11
12var node_bootstrap = require(path.join(catapultBuildPath, 'node_bootstrap.js'));
13
14HTMLImportsLoader.addArrayToSourcePath(
15    node_bootstrap.getSourcePathsForProject('tracing'));
16
17// Go!
18HTMLImportsLoader.loadHTML('/tracing/importer/import.html');
19HTMLImportsLoader.loadHTML('/tracing/model/model.html');
20HTMLImportsLoader.loadHTML('/tracing/extras/full_config.html');
21
22// Make the tracing namespace the main tracing export.
23module.exports = global.tr;
24