1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const core_1 = require("@angular-devkit/core");
|
11 | const architect_command_1 = require("../models/architect-command");
|
12 | class ServeCommand extends architect_command_1.ArchitectCommand {
|
13 | constructor() {
|
14 | super(...arguments);
|
15 | this.target = 'serve';
|
16 | }
|
17 | validate(_options) {
|
18 | return true;
|
19 | }
|
20 | async run(options) {
|
21 | return this.runArchitectTarget(options);
|
22 | }
|
23 | async reportAnalytics(paths, options, dimensions = [], metrics = []) {
|
24 | if (options.buildEventLog !== undefined) {
|
25 | dimensions[core_1.analytics.NgCliAnalyticsDimensions.NgBuildBuildEventLog] = true;
|
26 | }
|
27 | return super.reportAnalytics(paths, options, dimensions, metrics);
|
28 | }
|
29 | }
|
30 | exports.ServeCommand = ServeCommand;
|