UNPKG

1.01 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.BuildCommand = void 0;
4/**
5 * @license
6 * Copyright Google Inc. All Rights Reserved.
7 *
8 * Use of this source code is governed by an MIT-style license that can be
9 * found in the LICENSE file at https://angular.io/license
10 */
11const core_1 = require("@angular-devkit/core");
12const architect_command_1 = require("../models/architect-command");
13class BuildCommand extends architect_command_1.ArchitectCommand {
14 constructor() {
15 super(...arguments);
16 this.target = 'build';
17 }
18 async run(options) {
19 return this.runArchitectTarget(options);
20 }
21 async reportAnalytics(paths, options, dimensions = [], metrics = []) {
22 if (options.buildEventLog !== undefined) {
23 dimensions[core_1.analytics.NgCliAnalyticsDimensions.NgBuildBuildEventLog] = true;
24 }
25 return super.reportAnalytics(paths, options, dimensions, metrics);
26 }
27}
28exports.BuildCommand = BuildCommand;