UNPKG

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